MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / GetFirstToolCall

Method GetFirstToolCall

dto/openai_response.go:142–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140}
141
142func (c *ChatCompletionsStreamResponse) GetFirstToolCall() *ToolCallResponse {
143 if c.IsToolCall() {
144 return &c.Choices[0].Delta.ToolCalls[0]
145 }
146 return nil
147}
148
149func (c *ChatCompletionsStreamResponse) Copy() *ChatCompletionsStreamResponse {
150 choices := make([]ChatCompletionsStreamResponseChoice, len(c.Choices))

Callers 1

Calls 1

IsToolCallMethod · 0.95

Tested by

no test coverage detected