(kind: Literal["tool_removal", "tool_addition"], name: str)
| 814 | |
| 815 | |
| 816 | def _tool_reference_block(kind: Literal["tool_removal", "tool_addition"], name: str) -> BetaContentBlockParam: |
| 817 | tool: BetaToolChangeToolReferenceParam = {"type": "tool_reference", "name": name} |
| 818 | if kind == "tool_removal": |
| 819 | return {"type": "tool_removal", "tool": tool} |
| 820 | return {"type": "tool_addition", "tool": tool} |
| 821 | |
| 822 | |
| 823 | def _run_sync_tool_use( |
no outgoing calls
no test coverage detected