(
text: string,
timestamp: string,
parentId: string | null,
usage: Record<string, unknown>,
)
| 338 | } |
| 339 | |
| 340 | function makeThinkingEntry( |
| 341 | text: string, |
| 342 | timestamp: string, |
| 343 | parentId: string | null, |
| 344 | usage: Record<string, unknown>, |
| 345 | ): PiJson { |
| 346 | return { |
| 347 | type: "message", |
| 348 | id: shortId(), |
| 349 | parentId, |
| 350 | timestamp, |
| 351 | message: { |
| 352 | role: "assistant", |
| 353 | content: [{ type: "thinking", thinking: text, thinkingSignature: null }], |
| 354 | timestamp: Date.parse(timestamp), |
| 355 | usage, |
| 356 | }, |
| 357 | }; |
| 358 | } |
| 359 | |
| 360 | function makeToolCallEntry( |
| 361 | tool: { callId: string; name: string; input: unknown }, |
no test coverage detected