INNER CODE UNIT · Rust

new_session

xuzhougeng/wisp-science · crates/wisp-acp/src/lib.rs:304

    pub async fn new_session(
        &self,
        cwd: impl AsRef<Path>,
        mcp_servers: Vec<McpServer>,
    ) -> Result<AcpSessionStart, AcpError> {
        self.request(|reply| Command::NewSession(cwd.as_ref().to_path_buf(), mcp_servers, reply))
            .await
    }

    pub async fn load_session(
        &self,
        session_id: SessionId,
        cwd: impl AsRef<Path>,
        mcp_servers: Vec<McpServer>,
    ) -> Result<AcpSessionState, AcpError> {
        self.request(|reply| {
            Command::Load(session_id, cwd.as_ref().to_path_buf(), mcp_servers, reply)
        })

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…