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

Method AddToolCallName

pkg/runtime/runtime_test.go:142–154  ·  view source on GitHub ↗
(id, name string)

Source from the content-addressed store, hash-verified

140}
141
142func (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
156func (b *streamBuilder) AddToolCallArguments(id, argsChunk string) *streamBuilder {
157 b.responses = append(b.responses, chat.MessageStreamResponse{

Calls

no outgoing calls

Tested by

no test coverage detected