Skip to main content

AgentPoolProvider

Trait AgentPoolProvider 

Source
pub trait AgentPoolProvider:
    Send
    + Sync
    + Debug {
    // Required methods
    fn list_agents(&self) -> Vec<AgentInfo>;
    fn get_agent(&self, id: &str) -> Option<AgentInfo>;
}
Expand description

Agent pool access capability. Implemented by the composition root to expose live sub-agent info to the Hub overlay and todo matching.

Required Methods§

Source

fn list_agents(&self) -> Vec<AgentInfo>

List all known agents (main + sub-agents).

Source

fn get_agent(&self, id: &str) -> Option<AgentInfo>

Get a specific agent by ID.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§