MCPcopy Create free account
hub / github.com/CopilotKit/with-agent-spec / build_agentspec_agent

Function build_agentspec_agent

agent/src/agent.py:27–35  ·  view source on GitHub ↗

Create an AgentSpecAgent configured from the JSON spec and server tools.

(runtime: str = "langgraph")

Source from the content-addressed store, hash-verified

25
26
27def 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 )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected