(
content: string,
delta: string | undefined,
model: string,
timestamp: number,
id: string,
)
| 78 | |
| 79 | // Helper to reconstruct StreamChunk from events |
| 80 | const createContentChunk = ( |
| 81 | content: string, |
| 82 | delta: string | undefined, |
| 83 | model: string, |
| 84 | timestamp: number, |
| 85 | id: string, |
| 86 | ): StreamChunk => ({ |
| 87 | type: 'content', |
| 88 | content, |
| 89 | delta: delta ?? '', |
| 90 | model, |
| 91 | timestamp, |
| 92 | id, |
| 93 | }) |
| 94 | |
| 95 | const createToolCallChunk = ( |
| 96 | toolCallId: string, |
no outgoing calls
no test coverage detected