Skip to main content

spawn_acp_session

Function spawn_acp_session 

Source
pub async fn spawn_acp_session(
    agent_command: &str,
    init_request: InitializeRequest,
    new_session_request: NewSessionRequest,
) -> Result<AcpSession, AcpClientError>
Expand description

Spawn an agent subprocess and establish an ACP session.

The connection auto-approves permissions, forwards session notifications as AcpEvents, and tunnels elicitation requests through the _aether/elicitation extension method.