File size: 411 Bytes
4e23b01 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import { z } from 'zod';
import { timelineMessageBase } from './base';
export const thinkingMessageSchema = z.object({
type: z.literal('thinking'),
...timelineMessageBase,
message_id: z.string().min(1),
turn_id: z.string().min(1),
step_id: z.string().min(1),
status: z.enum(['streaming', 'completed']),
text: z.string(),
});
export type ThinkingMessage = z.infer<typeof thinkingMessageSchema>;
|