Creating Agents
Agents are the autonomous units of your application. Each agent has a role, an LLM for decision-making, tools to act with, and a prompt that defines its behavior.Prerequisites
- AgenticAI Core SDK installed and configured.
- An LLM model and prompt configured. See Prompts and LLM Configuration.
- Tools defined if the agent needs to perform actions. See Working with Tools.
Agent types
Autonomous agents
AI-powered agents that use LLM-based decision-making. Most agents use this type:Proxy agents
Agents that delegate processing to an external system:Agent sub-types
REACT (ReAct pattern)
The REACT sub-type uses a Reasoning + Acting loop. The agent iterates through:- Reason about the task.
- Select an action (tool).
- Observe the result.
- Continue until complete.
Agent roles
| Role | Description |
|---|---|
WORKER | Executes specific tasks delegated by the orchestrator. |
SUPERVISOR | Coordinates other agents; typically used for the orchestrator agent. |
Add tools to agents
Builder pattern
Direct assignment
Configure prompts
Basic prompt
With instructions
With memory context
Use{{memory.store.field}} template variables to inject stored data directly into the prompt, reducing unnecessary tool calls:
Additional configuration
Agent icon
Real-time (voice/audio)
Custom metadata
Register with the orchestrator
Convert anAgent to a lightweight AgentMeta for orchestrator registration:
Best practices
- Naming: Use descriptive names that reflect the agent’s purpose. The orchestrator uses names for routing.
- Descriptions: Write detailed capability descriptions so the orchestrator knows when to use the agent. Include known limitations and constraints.
- LLM configuration: Match temperature to the task type. Set token limits appropriate to expected response length. Consider cost versus quality trade-offs.
- Prompts: Be specific about the agent’s role. Include relevant context and clear guidelines. Use memory template variables to reduce unnecessary tool calls.
- Tools: Only assign tools relevant to the agent’s scope. Avoid tool overload — too many tools increase latency and reduce routing precision.
- Testing: Test agents individually before wiring them into a multi-agent system. Verify tool integration, memory access, and prompt effectiveness separately.