(kind: Literal["tool_removal", "tool_addition"], name: str)
| 707 | |
| 708 | |
| 709 | def _tool_reference_block(kind: Literal["tool_removal", "tool_addition"], name: str) -> BetaContentBlockParam: |
| 710 | tool: BetaToolChangeToolReferenceParam = {"type": "tool_reference", "name": name} |
| 711 | if kind == "tool_removal": |
| 712 | return {"type": "tool_removal", "tool": tool} |
| 713 | return {"type": "tool_addition", "tool": tool} |
| 714 | |
| 715 | |
| 716 | def _run_sync_tool_use( |
no outgoing calls
no test coverage detected