pub enum DriverCommand {
UiDialogResponse {
request_id: String,
answer: Option<Value>,
},
Prompt(String),
Abort,
RefreshState,
SetModel(String),
SetThinkingLevel(String),
SetActiveTools(Vec<String>),
}Expand description
A command the TUI sends to its backend.
Variants§
UiDialogResponse
Answer or cancel a remote question by request id.
Prompt(String)
Run a prompt on the backend’s main lane.
Abort
Interrupt the in-flight run.
RefreshState
Re-query the backend’s session state (model / thinking / tools).
SetModel(String)
Switch the active model by id.
SetThinkingLevel(String)
Set the thinking level (off…max).
SetActiveTools(Vec<String>)
Replace the active tool set.
Trait Implementations§
Source§impl Clone for DriverCommand
impl Clone for DriverCommand
Source§impl Debug for DriverCommand
impl Debug for DriverCommand
impl Eq for DriverCommand
Source§impl PartialEq for DriverCommand
impl PartialEq for DriverCommand
impl StructuralPartialEq for DriverCommand
Auto Trait Implementations§
impl Freeze for DriverCommand
impl RefUnwindSafe for DriverCommand
impl Send for DriverCommand
impl Sync for DriverCommand
impl Unpin for DriverCommand
impl UnsafeUnpin for DriverCommand
impl UnwindSafe for DriverCommand
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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