(name: string, content: string, callId = 'c')
| 99 | |
| 100 | describe('dedupHistory', () => { |
| 101 | function toolMsg(name: string, content: string, callId = 'c'): Message { |
| 102 | return { role: 'tool', tool_call_id: callId, content, name } as Message; |
| 103 | } |
| 104 | |
| 105 | function userMsg(text: string): Message { |
| 106 | return { role: 'user', content: text }; |