Create an AgentSpecAgent configured from the JSON spec and server tools.
(runtime: str = "langgraph")
| 25 | |
| 26 | |
| 27 | def build_agentspec_agent(runtime: str = "langgraph") -> AgentSpecAgent: |
| 28 | """Create an AgentSpecAgent configured from the JSON spec and server tools.""" |
| 29 | from agentspec_agent import get_weather, with_agentspec_agent_json |
| 30 | |
| 31 | return AgentSpecAgent( |
| 32 | agent_spec_config=with_agentspec_agent_json, |
| 33 | runtime=runtime, |
| 34 | tool_registry={"get_weather": get_weather} |
| 35 | ) |
nothing calls this directly
no outgoing calls
no test coverage detected