(item: LLMInteractionItem, content: string)
| 236 | // will join onto a single line |
| 237 | // - It will wrap text at the wrap width |
| 238 | private logMessageText(item: LLMInteractionItem, content: string) { |
| 239 | const lines = content.split("\n"); |
| 240 | for (let i = 0; i < lines.length; i++) { |
| 241 | let startAt: number | null = 0; |
| 242 | let marker = "| "; |
| 243 | while (startAt !== null) { |
| 244 | // When wrapping, the next start position is turned; |
| 245 | // null means we've written everything |
| 246 | startAt = this.logFragment( |
| 247 | item, |
| 248 | lines[i], |
| 249 | startAt, |
| 250 | marker, |
| 251 | true, |
| 252 | i === lines.length - 1, |
| 253 | true, |
| 254 | ); |
| 255 | marker = ". "; |
| 256 | } |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | private logToolcalls(item: LLMInteractionItem, toolsCalls: ToolCallDelta[]) { |
| 261 | for (const toolCall of toolsCalls) { |
no test coverage detected