MCPcopy Index your code
hub / github.com/docker/docker-agent / AddToolCallArguments

Method AddToolCallArguments

pkg/runtime/runtime_test.go:156–168  ·  view source on GitHub ↗
(id, argsChunk string)

Source from the content-addressed store, hash-verified

154}
155
156func (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
170func (b *streamBuilder) AddStopWithUsage(input, output int64) *streamBuilder {
171 b.responses = append(b.responses, chat.MessageStreamResponse{

Calls

no outgoing calls

Tested by

no test coverage detected