MCPcopy
hub / github.com/openai/swarm / Agent

Class Agent

swarm/types.py:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14class Agent(BaseModel):
15 name: str = "Agent"
16 model: str = "gpt-4o"
17 instructions: Union[str, Callable[[], str]] = "You are a helpful agent."
18 functions: List[AgentFunction] = []
19 tool_choice: str = None
20 parallel_tool_calls: bool = True
21
22
23class Response(BaseModel):

Callers 15

test_tool_callFunction · 0.90
test_execute_tools_falseFunction · 0.90
test_handoffFunction · 0.90
agents.pyFile · 0.90
main.pyFile · 0.90
main.pyFile · 0.90
bare_minimum.pyFile · 0.90

Calls

no outgoing calls

Tested by 4

test_tool_callFunction · 0.72
test_execute_tools_falseFunction · 0.72
test_handoffFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…