Skip to main content

AgentConfigResolver

Trait AgentConfigResolver 

Source
pub trait AgentConfigResolver: Send + Sync {
    // Required method
    fn resolve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        agent_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Option<AgentBehaviorConfig>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Seam for resolving an agent’s AgentBehaviorConfig by agent_id.

The ws protocol’s create_conversation_session carries only an agent UUID, so per-agent config is looked up server-side by id. Implemented by the host (backed by the monorepo agents table). Returning None means “no per-agent config” — the runner falls back to the org default persona, exactly as before this seam existed. Matches the sibling lanes’ AgentConfigResolver.resolve.

Required Methods§

Source

fn resolve<'life0, 'life1, 'async_trait>( &'life0 self, agent_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Option<AgentBehaviorConfig>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

The per-agent behavior config for agent_id, or None when the agent is unknown / has no usable config.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§