When tool_choice was 'none', the code did 'pass' — no tool_choice was sent but tools were still included in the request. Anthropic defaults to 'auto' when tools are present, so the model could still call tools despite the caller requesting 'none'. Fix: omit tools entirely from the request when tool_choice is 'none', which is the only way to prevent tool use with the Anthropic API. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| anthropic_adapter.py | ||
| auxiliary_client.py | ||
| context_compressor.py | ||
| display.py | ||
| insights.py | ||
| model_metadata.py | ||
| prompt_builder.py | ||
| prompt_caching.py | ||
| redact.py | ||
| skill_commands.py | ||
| smart_model_routing.py | ||
| trajectory.py | ||
| usage_pricing.py | ||