Variable: TurnSchema
Makaio Framework / contracts / TurnSchema
Variable: TurnSchema
Section titled “Variable: TurnSchema”
constTurnSchema:ZodObject<{completedAt:ZodOptional<ZodNumber>;error:ZodOptional<ZodString>;sessionId:ZodString;startedAt:ZodNumber;status:ZodEnum<{active:"active";completed:"completed";error:"error"; }>;turnId:ZodString;turnNumber:ZodNumber;usage:ZodOptional<ZodObject<{byAgent:ZodOptional<ZodRecord<ZodString,ZodObject<{cost:ZodOptional<ZodNumber>;inputTokens:ZodNumber;outputTokens:ZodNumber; },$strip>>>;total:ZodObject<{cost:ZodOptional<ZodNumber>;inputTokens:ZodNumber;outputTokens:ZodNumber; },$strip>; },$strip>>; },$strip>
Defined in: ../../../packages/contracts/src/session/schemas/message.ts:103
A turn in a session conversation.
A turn represents a user message and all agent responses to it. Extracted from events to provide explicit turn boundaries.