Function
text
(input: { id: string; messageID: string; text: string; time?: Record<string, number> })
Source from the content-addressed store, hash-verified
| 49 | } |
| 50 | |
| 51 | function text(input: { id: string; messageID: string; text: string; time?: Record<string, number> }) { |
| 52 | return { |
| 53 | type: "message.part.updated", |
| 54 | properties: { |
| 55 | part: { |
| 56 | id: input.id, |
| 57 | messageID: input.messageID, |
| 58 | sessionID: "session-1", |
| 59 | type: "text", |
| 60 | text: input.text, |
| 61 | ...(input.time ? { time: input.time } : {}), |
| 62 | }, |
| 63 | }, |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | function reasoning(input: { id: string; messageID: string; text: string; time?: Record<string, number> }) { |
| 68 | return { |
Tested by
no test coverage detected