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

Function capturing

tests/lib/environments/test_worker.py:81–86  ·  view source on GitHub ↗
(contexts: list[AgentToolContext])

Source from the content-addressed store, hash-verified

79
80
81def capturing(contexts: list[AgentToolContext]) -> Callable[[AgentToolContext], list[Tool]]:
82 def tools(env: AgentToolContext) -> list[Tool]:
83 contexts.append(env)
84 return []
85
86 return tools
87
88
89def broken_tools(_env: AgentToolContext) -> list[Tool]:

Calls

no outgoing calls

Tested by

no test coverage detected