(content: string | null, toolCalls?: ToolCall[])
| 90 | } |
| 91 | |
| 92 | function chatResponse(content: string | null, toolCalls?: ToolCall[]) { |
| 93 | return { |
| 94 | choices: [{ message: { content, tool_calls: toolCalls } }], |
| 95 | usage: { prompt_tokens: 10, completion_tokens: 5, total_tokens: 15 }, |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | function makeTool(id: string): ProviderToolConfig { |
| 100 | return { |