(callId: string, text: string)
| 42 | } |
| 43 | |
| 44 | function toolMsg(callId: string, text: string): ContextMessage { |
| 45 | return { |
| 46 | role: 'tool', |
| 47 | content: [{ type: 'text', text }], |
| 48 | toolCalls: [], |
| 49 | toolCallId: callId, |
| 50 | }; |
| 51 | } |
| 52 | |
| 53 | function makeToolCall(id: string, name: string, args: Record<string, unknown>): ToolCall { |
| 54 | return { |
no outgoing calls
no test coverage detected