(
kind: Literal["tool_removal", "tool_addition"], name: str
)
| 1007 | |
| 1008 | |
| 1009 | def _tool_reference_block( |
| 1010 | kind: Literal["tool_removal", "tool_addition"], name: str |
| 1011 | ) -> BetaRequestToolRemovalBlockParam | BetaRequestToolAdditionBlockParam: |
| 1012 | tool: BetaToolChangeToolReferenceParam = {"type": "tool_reference", "name": name} |
| 1013 | if kind == "tool_removal": |
| 1014 | return {"type": "tool_removal", "tool": tool} |
| 1015 | return {"type": "tool_addition", "tool": tool} |
| 1016 | |
| 1017 | |
| 1018 | def _run_sync_tool_use( |
no outgoing calls
no test coverage detected