Skip to main content

create_agent_session_runtime

Function create_agent_session_runtime 

Source
pub async fn create_agent_session_runtime(
    factory: Arc<dyn CreateAgentSessionRuntimeFactory>,
    cwd: String,
    agent_dir: String,
    session_manager: SessionManager,
) -> Result<AgentSessionRuntime, AgentSessionRuntimeError>
Expand description

Create the initial runtime from a factory and initial session manager.

ยงErrors

Returns AgentSessionRuntimeError when the factory fails.