(name: string, args: string)
| 107 | } |
| 108 | |
| 109 | function assistantWithCall(name: string, args: string): Message { |
| 110 | return { |
| 111 | role: 'assistant', |
| 112 | content: '', |
| 113 | tool_calls: [{ id: 'c', type: 'function', function: { name, arguments: args } }], |
| 114 | }; |
| 115 | } |
| 116 | |
| 117 | it('returns input unchanged when no duplicates exist', () => { |
| 118 | const msgs: Message[] = [ |