Skip to main content

acp_cli/bridge/
commands.rs

1use super::events::PromptResult;
2use crate::error::Result;
3use tokio::sync::oneshot;
4
5pub enum BridgeCommand {
6    Prompt {
7        messages: Vec<String>,
8        reply: oneshot::Sender<Result<PromptResult>>,
9    },
10    Cancel,
11    Shutdown,
12    SetMode {
13        mode: String,
14        reply: oneshot::Sender<Result<()>>,
15    },
16    SetConfig {
17        key: String,
18        value: String,
19        reply: oneshot::Sender<Result<()>>,
20    },
21}