(input: { id: string; messageID: string; text: string; time?: Record<string, number> })
| 65 | } |
| 66 | |
| 67 | function reasoning(input: { id: string; messageID: string; text: string; time?: Record<string, number> }) { |
| 68 | return { |
| 69 | type: "message.part.updated", |
| 70 | properties: { |
| 71 | part: { |
| 72 | id: input.id, |
| 73 | messageID: input.messageID, |
| 74 | sessionID: "session-1", |
| 75 | type: "reasoning", |
| 76 | text: input.text, |
| 77 | ...(input.time ? { time: input.time } : {}), |
| 78 | }, |
| 79 | }, |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | function delta(messageID: string, partID: string, value: string) { |
| 84 | return { |