import { BeliefType, DialecticType } from '@epistemicme/sdk';
async function quickstart() {
// Create a self model
const selfModel = await client.createSelfModel({
userId: 'self_001'
});
// Create a belief
const belief = await client.createBelief({
userId: selfModel.id,
content: 'Regular exercise improves mental clarity',
beliefType: BeliefType.STATEMENT
});
// Start a dialectic
const dialectic = await client.createDialectic({
userId: selfModel.id,
dialecticType: DialecticType.DEFAULT
});
// Update with a question-answer pair
await client.updateDialectic({
userId: selfModel.id,
dialecticId: dialectic.id,
answer: {
userAnswer: 'I exercise three times a week',
createdAtMillisUtc: BigInt(Date.now())
}
});
}