Skip to main content

Module multi

Module multi 

Source
Expand description

Multi-agent orchestration: agent pool, role definitions, and message bus.

Structs§

AgentMessage
A message exchanged between agents via the message bus.
AgentPool
An agent pool manages multiple agents with different roles.
AgentRole
Definition of an agent role.
MemoryEntry
A single entry in the shared memory store.
MessageBus
An inter-agent message bus supporting publish/subscribe and history.
SharedMemory
Shared memory store for multi-agent coordination.
WorkerManifestEntry
Definition of a single worker entry within the agent manifest.

Enums§

AgentMode
Execution mode for the unified agent delegation tool.
MessageType
Message type for inter-agent communication.

Constants§

MESSAGE_BUS_CAPACITY
Maximum messages retained in MessageBus.messages history. 1000 messages × ~200 bytes/msg ≈ 200 KiB — bounded for long-running pools while still giving plenty of recent context for the goal-judge and history inspection.

Functions§

coordinator_system_prompt
Return the system prompt that enables a coordinator agent to autonomously design a specialist team and orchestrate their work.
default_roles
Default role set for common multi-agent patterns.
register_subagent_if_enabled
Register the unified Agent (sub-agent / team coordination) tool — plus the coordinator-side coordination tools (send_message, list_workers, task_create / task_get / task_list / task_output / task_stop / task_update) — on tools when config.subagent_enabled is true.

Type Aliases§

AgentManifest
Maps worker IDs to their role definitions. Required by the agent tool.