MCPcopy Create free account
hub / github.com/coder/aibridge / disableParallelToolCalls

Method disableParallelToolCalls

intercept/messages/base.go:167–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165}
166
167func (i *interceptionBase) disableParallelToolCalls() {
168 // Note: Parallel tool calls are disabled to avoid tool_use/tool_result block mismatches.
169 // https://github.com/coder/aibridge/issues/2
170 updated, err := i.reqPayload.disableParallelToolCalls()
171 if err != nil {
172 i.logger.Warn(context.Background(), "failed to set tool_choice in request payload", slog.Error(err))
173 return
174 }
175 i.reqPayload = updated
176}
177
178// extractModelThoughts returns any thinking blocks that were returned in the response.
179func (*interceptionBase) extractModelThoughts(msg *anthropic.Message) []*recorder.ModelThoughtRecord {

Callers 2

injectToolsMethod · 0.95

Calls 1

ErrorMethod · 0.45