Download packages/kap-server/src/protocol/messages/thinking.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 411 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/kap-server/src/protocol/messages/thinking.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/kap-server/src/protocol/messages/thinking.ts
-
curl -L -o thinking.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/kap-server/src/protocol/messages/thinking.ts
411 Bytes
| 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>; | |