Skip to main content

CreateAgentSessionRuntimeFactory

Trait CreateAgentSessionRuntimeFactory 

Source
pub trait CreateAgentSessionRuntimeFactory: Send + Sync {
    // Required method
    fn create(
        &self,
        options: CreateAgentSessionRuntimeOptions,
    ) -> BoxFuture<'_, Result<CreateAgentSessionRuntimeResult, AgentSessionRuntimeError>>;
}
Expand description

Factory that builds a fresh session + services from a session manager.

Implemented by the real services factory (which composes create_agent_session_services + create_agent_session_from_services) and fake test factories.

Required Methods§

Source

fn create( &self, options: CreateAgentSessionRuntimeOptions, ) -> BoxFuture<'_, Result<CreateAgentSessionRuntimeResult, AgentSessionRuntimeError>>

Build a new session + services from the given options.

§Errors

Returns AgentSessionRuntimeError when services construction or session creation fails.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§