( responseId: string, callId: string, timestamp: number, )
| 55 | } |
| 56 | |
| 57 | function thinkingToolCall( |
| 58 | responseId: string, |
| 59 | callId: string, |
| 60 | timestamp: number, |
| 61 | ): Record<string, unknown> { |
| 62 | return { |
| 63 | role: "assistant", |
| 64 | content: [ |
| 65 | { |
| 66 | type: "thinking", |
| 67 | thinking: "...", |
| 68 | thinkingSignature: `{"id":"rs_${callId}"}`, |
| 69 | }, |
| 70 | { |
| 71 | type: "toolCall", |
| 72 | id: `${callId}|fc_${callId}`, |
| 73 | name: "read", |
| 74 | arguments: {}, |
| 75 | }, |
| 76 | ], |
| 77 | responseId, |
| 78 | timestamp, |
| 79 | }; |
| 80 | } |
| 81 | |
| 82 | function toolResultMsg( |
| 83 | callId: string, |
no outgoing calls
no test coverage detected