pub enum RemoteCommand {
UiDialogResponse {
request_id: String,
answer: Option<Value>,
cancelled: bool,
},
Prompt {
content: String,
},
Abort,
GetState,
SetModel {
model: String,
},
SetThinkingLevel {
level: String,
},
SetActiveTools {
tools: Vec<String>,
},
Ping,
Stop,
}Expand description
A command sent from the client to the server ({"id":…,"type":…,…}).
The id is attached by the client when sending (see
with_id) so responses can be correlated.
Variants§
UiDialogResponse
Prompt
Run a prompt on the remote main lane; events stream until agent_end.
Abort
Abort the in-flight run.
GetState
Fetch the current session state (model, thinking, tools, ids).
SetModel
Switch the active model by id.
SetThinkingLevel
Set the thinking level (off…max).
SetActiveTools
Replace the active tool set.
Ping
Liveness probe.
Stop
Ask the server to end the session loop.
Implementations§
Trait Implementations§
Source§impl Clone for RemoteCommand
impl Clone for RemoteCommand
Source§impl Debug for RemoteCommand
impl Debug for RemoteCommand
Source§impl<'de> Deserialize<'de> for RemoteCommand
impl<'de> Deserialize<'de> for RemoteCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RemoteCommand
impl PartialEq for RemoteCommand
Source§impl Serialize for RemoteCommand
impl Serialize for RemoteCommand
impl StructuralPartialEq for RemoteCommand
Auto Trait Implementations§
impl Freeze for RemoteCommand
impl RefUnwindSafe for RemoteCommand
impl Send for RemoteCommand
impl Sync for RemoteCommand
impl Unpin for RemoteCommand
impl UnsafeUnpin for RemoteCommand
impl UnwindSafe for RemoteCommand
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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