Skip to content

Individual agent configurations define the behavior, capabilities, and settings for each agent in your manifest. Each agent entry in the agents dictionary represents a complete agent setup.

Overview

Agent configuration includes:

  • Model settings: LLM provider and model selection
  • System prompts: Define agent behavior and personality
  • Tools and toolsets: Capabilities available to the agent
  • Knowledge sources: Context and information access
  • Output types: Structured response definitions
  • Workers: Sub-agents for delegation
  • Connections: Message routing to other nodes
  • MCP servers: Model Context Protocol integrations
  • Triggers: Event-based activation

Configuration Reference

Agent Configuration

Configuration for a single agent in the system.

Defines an agent's complete configuration including its model, environment, and behavior settings.

Docs: https://phil65.github.io/agentpool/configuration/node-types/agent/

Agent Configuration (YAML)
type: native  # Top-level discriminator for agent type.
model:  # The model to use for this agent. Can be either a simple model name
  type: string
  identifier: openai:gpt-6-luna
  max_tokens: null
  temperature: null
  top_p: null
  timeout: null
  parallel_tool_calls: null
  seed: null
  presence_penalty: null
  frequency_penalty: null
  logit_bias: null
  stop_sequences: null
  extra_headers: null
  extra_body: null
tools: []  # A list of tools and toolsets to register with this agent.
session: null  # Session configuration for conversation recovery.
output_type: null  # Optional structured output type for responses. Can be either a reference to a response defined in ma...
retries: 1  # Number of retries for failed operations (maps to pydantic-ai's retries)
output_retries: null  # Max retries for result validation
end_strategy: early  # The strategy for handling multiple tool calls when a final result is found
avatar: null  # URL or path to agent's avatar image
system_prompt: null  # System prompt for the agent.
knowledge: null  # Knowledge sources for this agent.
workers: []  # Worker agents which will be available as tools.
usage_limits: null  # Usage limits for this agent.
model_providers: null  # List of model providers to use for model discovery.
tool_mode: null  # Tool execution mode:
requires_tool_confirmation: per_tool  # How to handle tool confirmation:
hooks:  # Hooks for intercepting and customizing agent behavior at key lifecycle points.
  pre_run: []  # Hooks executed before agent.run() processes a prompt.
  post_run: []  # Hooks executed after agent.run() completes.
  pre_tool_use: []  # Hooks executed before a tool is called. Can block or modify the call.
  post_tool_use: []  # Hooks executed after a tool completes.
environment: null  # Execution environment config for the agent's own toolsets.
name: null  # Identifier for the node. Set from dict key, not from YAML.
display_name: null  # Human-readable display name for the node.
description: null  # Optional description of the agent / team.
triggers: []  # Event sources that activate this agent / team
connections: []  # Targets to forward results to.
mcp_servers: []  # List of MCP server configurations:
input_provider: null  # Provider for human-input-handling.
event_handlers: []  # Event handlers for processing agent stream events.

Example

agents:
  web_assistant:                     # Name of the agent
    description: "Helps with web tasks"
    model: openai:gpt-5-mini         # Model to use (string or model config)
    tools:
      - type: import
        import_path: webbrowser.open
        name: open_browser
        description: "Opens URLs in browser"
    system_prompt:
      - "You are a web assistant."
      - "Use open_browser to open URLs."
    retries: 2                       # Retries for failed tool calls / validations

To share settings between agents, use INHERIT or model variants.

Field Reference

Field Type Default Description
display_name str Human-readable display name for the node.
description str Optional description of the agent / team.
triggers list[one of 6 types] (factory) Event sources that activate this agent / team
connections list[NodeConnectionConfig | FileConnectionConfig | CallableConnectionConfig] (factory) Targets to forward results to.
mcp_servers list[str | StdioMCPServerConfig | SSEMCPServerConfig | StreamableHTTPMCPServerConfig] (factory) List of MCP server configurations: - str entries: URLs become HTTP / SSE servers, other strings stdio commands - MCPServerConfig for full server configuration
input_provider Any Provider for human-input-handling.
event_handlers list[one of 5 types] (factory) Event handlers for processing agent stream events.
requires_tool_confirmation 'always' | 'never' | 'per_tool' 'per_tool' How to handle tool confirmation: - "always": Always require confirmation for all tools - "never": Never require confirmation (ignore tool settings) - "per_tool": Use individual tool settings
hooks HooksConfig (factory) Hooks for intercepting and customizing agent behavior at key lifecycle points.
environment one of 16 types Execution environment config for the agent's own toolsets.
type 'native' 'native' Top-level discriminator for agent type.
model one of 34 types required The model to use for this agent. Can be either a simple model name string (e.g. 'openai:gpt-5') or a structured model definition.
tools list[one of 40 types] (factory) A list of tools and toolsets to register with this agent.
session str | SessionQuery | MemoryConfig Session configuration for conversation recovery.
output_type str | StructuredResponseConfig Optional structured output type for responses. Can be either a reference to a response defined in manifest.responses, or an inline StructuredResponseConfig.
retries int 1 Number of retries for failed operations (maps to pydantic-ai's retries)
output_retries int Max retries for result validation
end_strategy 'early' | 'graceful' | 'exhaustive' 'early' The strategy for handling multiple tool calls when a final result is found
avatar str URL or path to agent's avatar image
system_prompt str | list[one of 5 types] System prompt for the agent. Can be a string or list of strings/prompt configs
knowledge Knowledge Knowledge sources for this agent.
workers list[one of 5 types] (factory) Worker agents which will be available as tools.
usage_limits UsageLimits Usage limits for this agent.
model_providers list[one of 23 values] List of model providers to use for model discovery.
tool_mode 'codemode' Tool execution mode: - None: Default mode - tools are called directly - "codemode": Tools are wrapped in a Python execution environment