MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / _custom_tool_use

Function _custom_tool_use

tests/lib/tools/test_session_runner.py:92–95  ·  view source on GitHub ↗

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])

Source from the content-addressed store, hash-verified

90
91
92def _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
98def _custom_tool_result(custom_tool_use_id: str) -> _StubEvent:

Calls 1

_StubEventClass · 0.85

Tested by

no test coverage detected