Skip to main content
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

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:
  1. Reason about the task.
  2. Select an action (tool).
  3. Observe the result.
  4. Continue until complete.
Best suited for general-purpose tasks, interactive problem-solving, and tool-heavy workflows.

Agent roles

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:
For full prompt and LLM configuration options, see Prompts and LLM Configuration.

Additional configuration

Agent icon

Real-time (voice/audio)

Custom metadata

Register with the orchestrator

Convert an Agent 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.