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

Function added_tool

tests/lib/threads/helpers.py:215–222  ·  view source on GitHub ↗
(marker: dict[str, Any])

Source from the content-addressed store, hash-verified

213 own, and so do the `tool_changes` of its compaction block, whatever `marker` is."""
214
215 def added_tool(marker: dict[str, Any]) -> dict[str, Any]:
216 definition: dict[str, Any] = {
217 "name": "fetch",
218 "input_schema": {"type": "object", "properties": {"cache_control": {}}},
219 "input_examples": [{"cache_control": "no-store"}],
220 **marker,
221 }
222 return {"type": "tool_addition", "tool": {"type": "tool_definition", "definition": definition}, **marker}
223
224 return [
225 {"role": "user", "content": "Hello"},

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected