(id, name string)
| 140 | } |
| 141 | |
| 142 | func (b *streamBuilder) AddToolCallName(id, name string) *streamBuilder { |
| 143 | b.responses = append(b.responses, chat.MessageStreamResponse{ |
| 144 | Choices: []chat.MessageStreamChoice{{ |
| 145 | Index: 0, |
| 146 | Delta: chat.MessageDelta{ToolCalls: []tools.ToolCall{{ |
| 147 | ID: id, |
| 148 | Type: "function", |
| 149 | Function: tools.FunctionCall{Name: name}, |
| 150 | }}}, |
| 151 | }}, |
| 152 | }) |
| 153 | return b |
| 154 | } |
| 155 | |
| 156 | func (b *streamBuilder) AddToolCallArguments(id, argsChunk string) *streamBuilder { |
| 157 | b.responses = append(b.responses, chat.MessageStreamResponse{ |
no outgoing calls
no test coverage detected