(kind: Literal["tool_removal", "tool_addition"], name: str)
| 1014 | |
| 1015 | |
| 1016 | def _tool_reference_block(kind: Literal["tool_removal", "tool_addition"], name: str) -> BetaContentBlockParam: |
| 1017 | tool: BetaToolChangeToolReferenceParam = {"type": "tool_reference", "name": name} |
| 1018 | if kind == "tool_removal": |
| 1019 | return {"type": "tool_removal", "tool": tool} |
| 1020 | return {"type": "tool_addition", "tool": tool} |
| 1021 | |
| 1022 | |
| 1023 | def _run_sync_tool_use( |
no outgoing calls
no test coverage detected