Agent Definition & Prompt Assembly
Defines agents, their instructions, tools, handoffs, and guardrails; assembles system prompts and handoff prompts.
Dashed nodes are interfaces outside this module.
entryAgent Definition & EntryEntry point for defining an agent with instructions, tools, handoffs, and guardrails.
Input
User-defined agent configurationOutput
Agent object with system prompt and tool listSource evidence
src/agents/agent.py:296-1083No prompt evidence is directly associated with this node.
stageSystem Prompt AssemblyBuilds the system prompt from agent instructions and dynamic prompt functions.
Input
Agent instructionsDynamic prompt function outputOutput
System prompt stringSource evidence
src/agents/agent.py:296-1083No prompt evidence is directly associated with this node.