This commit is contained in:
Aiden Cline
2025-12-11 17:07:22 -06:00
parent 61ba844234
commit bacf705ee5
2 changed files with 37 additions and 0 deletions
@@ -286,6 +286,9 @@ export namespace MessageV2 {
sessionID: z.string(),
})
export const Thinking = z.object({ effort: z.enum(["low", "medium", "high"]) })
export type Thinking = z.infer<typeof Thinking>
export const User = Base.extend({
role: z.literal("user"),
time: z.object({
@@ -305,6 +308,7 @@ export namespace MessageV2 {
}),
system: z.string().optional(),
tools: z.record(z.string(), z.boolean()).optional(),
thinking: Thinking.optional(),
}).meta({
ref: "UserMessage",
})