(id, argsChunk string)
| 154 | } |
| 155 | |
| 156 | func (b *streamBuilder) AddToolCallArguments(id, argsChunk string) *streamBuilder { |
| 157 | b.responses = append(b.responses, chat.MessageStreamResponse{ |
| 158 | Choices: []chat.MessageStreamChoice{{ |
| 159 | Index: 0, |
| 160 | Delta: chat.MessageDelta{ToolCalls: []tools.ToolCall{{ |
| 161 | ID: id, |
| 162 | Type: "function", |
| 163 | Function: tools.FunctionCall{Arguments: argsChunk}, |
| 164 | }}}, |
| 165 | }}, |
| 166 | }) |
| 167 | return b |
| 168 | } |
| 169 | |
| 170 | func (b *streamBuilder) AddStopWithUsage(input, output int64) *streamBuilder { |
| 171 | b.responses = append(b.responses, chat.MessageStreamResponse{ |
no outgoing calls
no test coverage detected