pub enum AgentMessage {
StatusChanged(AgentStatus),
SessionUpdate(SessionUpdate),
PermissionRequest {
request_id: u64,
tool_call: Value,
options: Vec<PermissionOption>,
},
PromptComplete,
PromptStarted,
ConfigUpdate {
updates: HashMap<String, Value>,
reply: Sender<Result<(), String>>,
},
ClientReady(Arc<JsonRpcClient>),
AutoApproved(String),
}Expand description
Messages sent from the agent manager to the UI layer.
Variants§
StatusChanged(AgentStatus)
The agent’s connection status changed.
SessionUpdate(SessionUpdate)
A session update notification from the agent.
PermissionRequest
The agent is requesting permission for a tool call.
PromptComplete
The agent finished processing a prompt (flush pending text).
PromptStarted
The agent has started processing a prompt (lock acquired, about to send).
ConfigUpdate
The agent wants to update config settings.
ClientReady(Arc<JsonRpcClient>)
The ACP client is ready — carry the Arc<JsonRpcClient> so the UI
can send responses without locking the agent mutex.
AutoApproved(String)
A tool call was automatically approved (for UI feedback).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentMessage
impl !RefUnwindSafe for AgentMessage
impl Send for AgentMessage
impl Sync for AgentMessage
impl Unpin for AgentMessage
impl UnsafeUnpin for AgentMessage
impl !UnwindSafe for AgentMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more