Skip to content

Conversation

@Edison-A-N
Copy link
Contributor

Add runner_config Support for Agent YAML Configuration

Summary

Adds runner_config section to agent YAML configuration files, allowing users to configure runtime parameters for AgentRunner including polling interval and ignored sender IDs.

Changes

  • Added runner_config section to agent YAML configuration

    • interval: Polling interval in seconds (default: 1)
    • ignored_sender_ids: List of agent IDs to ignore messages from
  • Updated agent_loader.py to extract and pass runner_config parameters to AgentRunner

  • Added comprehensive tests for runner_config loading:

    • Full configuration test
    • Default values test
    • Partial configuration test
  • Updated documentation in yaml-based-agents.mdx with runner_config reference

Use Cases

  1. Prevent infinite loops: Configure agents to ignore messages from specific agents to prevent response loops
  2. Control polling frequency: Adjust interval to optimize CPU usage or responsiveness
  3. Filter noisy agents: Ignore messages from agents that generate excessive traffic

Example

agent_id: "founder"

config:
  model_name: "gpt-4o-mini"
  instruction: "You are a startup founder."
  react_to_all_messages: true

runner_config:
  interval: 2
  ignored_sender_ids:
    - "agent:engineer"
    - "agent:investor"

Testing

All existing tests pass. Added 3 new test cases covering:

  • ✅ Full runner_config configuration
  • ✅ Default values when runner_config is absent
  • ✅ Partial configuration (only ignored_sender_ids or only interval)

Related Issues

Addresses the need for preventing agent-to-agent infinite loops in multi-agent scenarios.

@vercel
Copy link

vercel bot commented Jan 14, 2026

@Edison-A-N is attempting to deploy a commit to the Raphael's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant