(value: string)
| 115 | } |
| 116 | |
| 117 | function toolArgsLine(value: string) { |
| 118 | return chunk({ |
| 119 | delta: { |
| 120 | tool_calls: [ |
| 121 | { |
| 122 | index: 0, |
| 123 | function: { |
| 124 | arguments: value, |
| 125 | }, |
| 126 | }, |
| 127 | ], |
| 128 | }, |
| 129 | }) |
| 130 | } |
| 131 | |
| 132 | function bytes(input: Iterable<unknown>) { |
| 133 | return Stream.fromIterable([...input].map(line)).pipe(Stream.encodeText) |
no test coverage detected