(text: string)
| 16 | } |
| 17 | |
| 18 | function createReasoningPart(text: string): SessionV1.Part { |
| 19 | return { |
| 20 | id: PartID.ascending(), |
| 21 | sessionID: SessionID.make("ses_test"), |
| 22 | messageID: MessageID.make("msg_test"), |
| 23 | type: "reasoning" as const, |
| 24 | text, |
| 25 | time: { start: 0 }, |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | function createToolPart(tool: string, title: string, status: "completed" | "running" = "completed"): SessionV1.Part { |
| 30 | if (status === "completed") { |
no test coverage detected