pub enum OutputChunk {
Text(String),
Thought(String),
ToolCall {
title: String,
},
ToolCallComplete {
title: String,
},
PermissionRequested {
title: String,
approved: bool,
},
Done,
Error(String),
}Expand description
A chunk of output from the ACP agent.
Variants§
Text(String)
A text chunk from the agent’s response.
Thought(String)
The agent is thinking (internal reasoning, not shown to user by default).
ToolCall
A tool call was initiated (e.g., “Creating file app.rs”).
ToolCallComplete
A tool call completed.
PermissionRequested
The agent requested permission (informational — decision already made by policy).
Done
The agent finished responding.
Error(String)
An error occurred.
Trait Implementations§
Source§impl Clone for OutputChunk
impl Clone for OutputChunk
Source§fn clone(&self) -> OutputChunk
fn clone(&self) -> OutputChunk
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OutputChunk
impl RefUnwindSafe for OutputChunk
impl Send for OutputChunk
impl Sync for OutputChunk
impl Unpin for OutputChunk
impl UnsafeUnpin for OutputChunk
impl UnwindSafe for OutputChunk
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