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

Function echo

tests/lib/tools/test_session_runner.py:335–336  ·  view source on GitHub ↗
(input: dict[str, Any])

Source from the content-addressed store, hash-verified

333@pytest.mark.asyncio()
334async def test_yields_completed_tool_call() -> None:
335 async def echo(input: dict[str, Any]) -> str:
336 return f"got {input.get('x')}"
337
338 tool = _FakeTool("echo", echo)
339 events = FakeAsyncEvents(stream_events=[_tool_use("tu_1", "echo", {"x": 42}), _terminated()])

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected