surfaces/config/matrix-agents.example.yaml

44 lines
1.7 KiB
YAML

# Agent registry for the Matrix bot.
# Production target: one surface bot routes to 25-30 externally managed agents.
# Keep adding entries with the same base_url/workspace_path pattern.
#
# user_agents: maps a Matrix user ID to an agent ID.
# If a user is not listed, the bot uses the first agent from the list below.
# Omit this section entirely for a single-agent setup.
#
# agents: list of available agents.
# id — must match the agent ID known to the platform
# label — human-readable name (shown in logs)
# base_url — HTTP/WS URL of this agent's endpoint
# (overrides the global AGENT_BASE_URL env var for this agent)
# workspace_path — absolute path to this agent's workspace directory inside the bot container
# (the bot saves incoming files directly here and reads outgoing files from here)
# Example: /agents/0 means the bot mounts the shared volume at /agents/
# and this agent's files live under /agents/0/
user_agents:
"@user0:matrix.example.org": agent-0
"@user1:matrix.example.org": agent-1
"@user2:matrix.example.org": agent-2
agents:
- id: agent-0
label: "Agent 0"
base_url: "http://lambda.coredump.ru:7000/agent_0/"
workspace_path: "/agents/0"
- id: agent-1
label: "Agent 1"
base_url: "http://lambda.coredump.ru:7000/agent_1/"
workspace_path: "/agents/1"
- id: agent-2
label: "Agent 2"
base_url: "http://lambda.coredump.ru:7000/agent_2/"
workspace_path: "/agents/2"
# Continue the same pattern through agent-29 for a 25-30 agent deployment:
# - id: agent-29
# label: "Agent 29"
# base_url: "http://lambda.coredump.ru:7000/agent_29/"
# workspace_path: "/agents/29"