A CUSTOM (user-defined) tool call — the agent emits ``agent.custom_tool_use`` rather than ``agent.tool_use`` for these.
(id: str, name: str, input: dict[str, Any])
| 90 | |
| 91 | |
| 92 | def _custom_tool_use(id: str, name: str, input: dict[str, Any]) -> _StubEvent: |
| 93 | """A CUSTOM (user-defined) tool call — the agent emits ``agent.custom_tool_use`` |
| 94 | rather than ``agent.tool_use`` for these.""" |
| 95 | return _StubEvent("agent.custom_tool_use", id=id, name=name, input=input) |
| 96 | |
| 97 | |
| 98 | def _custom_tool_result(custom_tool_use_id: str) -> _StubEvent: |
no test coverage detected