INNER CODE UNIT · Rust
prompt
xuzhougeng/wisp-science · crates/wisp-acp/src/lib.rs:349
pub async fn prompt(
&self,
session_id: SessionId,
content: Vec<ContentBlock>,
) -> Result<AcpPromptOutcome, AcpError> {
self.request(|reply| Command::Prompt(session_id, content, reply))
.await
}
pub fn cancel(&self, session_id: SessionId) -> Result<(), AcpError> {
self.command_tx
.send(Command::Cancel(session_id))
.map_err(|_| AcpError::Closed)
}
pub fn respond_permission(
&self,
request_id: impl Into<String>,