41 lines
766 B
TypeScript
41 lines
766 B
TypeScript
export const CANONICAL_EVENT_TYPES = [
|
|
'run.started',
|
|
'run.preparing',
|
|
'run.created',
|
|
'plan.updated',
|
|
'plan.update',
|
|
'step.started',
|
|
'step.start',
|
|
'step.updated',
|
|
'step.meta',
|
|
'step.output',
|
|
'step.chunk',
|
|
'step.completed',
|
|
'step.done',
|
|
'step.failed',
|
|
'question.requested',
|
|
'question.asked',
|
|
'question.resolved',
|
|
'question.replied',
|
|
'question.rejected',
|
|
'artifact.created',
|
|
'answer.delta',
|
|
'answer.completed',
|
|
'answer.started',
|
|
'run.completed',
|
|
'run.failed',
|
|
'run.cancelled',
|
|
'final',
|
|
'done',
|
|
'context.status',
|
|
] as const
|
|
|
|
export type KamidsoEventType = (typeof CANONICAL_EVENT_TYPES)[number]
|
|
|
|
export interface KamidsoRunEvent {
|
|
type: string
|
|
run_id?: string
|
|
sequence?: number
|
|
[key: string]: unknown
|
|
}
|