MCPcopy Index your code
hub / github.com/coder/coder / disableParallelToolCalls

Method disableParallelToolCalls

aibridge/intercept/messages/base.go:168–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

injectToolsMethod · 0.95

Calls 1

ErrorMethod · 0.45