| 154 | } |
| 155 | |
| 156 | export interface StreamCallbacks { |
| 157 | onText?: (text: string) => void; |
| 158 | onToolCall?: (toolName: string, args: Record<string, unknown>) => void; |
| 159 | onToolResult?: (toolName: string, result: string) => void; |
| 160 | onProgress?: (update: { toolCalls: number; tokens: number }) => void; |
| 161 | } |
| 162 | |
| 163 | export async function runBashAgent( |
| 164 | question: string, |
nothing calls this directly
no outgoing calls
no test coverage detected