pub enum DisplayEvent {
Show 15 variants
StartOutput,
TextChunk {
chunk: String,
},
ToolCall {
name: String,
args: Value,
display_as: Option<String>,
},
ToolResult {
segments: Vec<DisplaySegment>,
},
Info(String),
ResponseDone(Option<Usage>),
UserInput(String),
SubscriptionEvent {
name: String,
text: String,
},
OAuthRequired {
auth_url: String,
},
UserChoiceRequired {
id: ChoiceId,
prompt: String,
choices: Vec<String>,
default: usize,
response_url: String,
},
UserChoiceComplete {
choice_id: ChoiceId,
},
ThinkingStart,
ThinkingEnd,
ThinkingChunk {
chunk: String,
},
CompactionApplied,
}Expand description
One renderable event in a conversation’s display stream.
Variants§
StartOutput
TextChunk
ToolCall
ToolResult
Fields
§
segments: Vec<DisplaySegment>Prioritized display segments. The renderer uses the first type it
supports; the raw tool output is always included as a trailing
Text segment as a fallback.
Info(String)
ResponseDone(Option<Usage>)
A completion round finished. Carries the usage the daemon reported,
when any: a usage-less ResponseDone (e.g. the marker appended after
a session replay) must not reset the context indicator.
UserInput(String)
SubscriptionEvent
OAuthRequired
UserChoiceRequired
UserChoiceComplete
ThinkingStart
ThinkingEnd
ThinkingChunk
CompactionApplied
Auto Trait Implementations§
impl Freeze for DisplayEvent
impl RefUnwindSafe for DisplayEvent
impl Send for DisplayEvent
impl Sync for DisplayEvent
impl Unpin for DisplayEvent
impl UnsafeUnpin for DisplayEvent
impl UnwindSafe for DisplayEvent
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more