pub enum RpcRequestKind {
Show 19 variants
NewSession {},
OpenSession {
session_id: SessionId,
},
NameSession {
name: Option<String>,
},
Prompt {
text: String,
},
Steer {
text: String,
},
FollowUp {
text: String,
},
Abort {},
ResolveApproval {
approval_id: ApprovalId,
decision: ApprovalDecision,
},
SetModel {
model: ModelRef,
},
Compact {},
Fork {
from_message_id: MessageId,
branch_id: BranchId,
},
ListSessions {},
QueryState {},
QuerySnapshot {
after_sequence: Option<SessionSequence>,
limit: usize,
},
QueryStats {},
QueryTree {},
ListModels {},
ListMcpServers {},
ReconnectMcp {
server_id: McpServerId,
},
}Expand description
Supported command and host-query request families.
Variants§
NewSession
Create and select a new durable session.
OpenSession
Attach and select an existing durable session.
NameSession
Set or clear the selected session display name.
Prompt
Submit one user prompt as an owned long-running command.
Steer
Steer the active run.
FollowUp
Queue a user follow-up.
Abort
Cancel the active run.
ResolveApproval
Resolve a durable approval.
Fields
approval_id: ApprovalIdPending approval identity.
decision: ApprovalDecisionSupported bounded decision.
SetModel
Select a model for future turns.
Compact
Compact the selected session.
Fork
Fork and activate a new branch.
Fields
ListSessions
List durable sessions.
QueryState
Query compact selected-session state.
QuerySnapshot
Query bounded canonical records after a durable cursor.
Fields
after_sequence: Option<SessionSequence>Last durable sequence already held by the client.
QueryStats
Query transcript statistics.
QueryTree
Query the append-only branch tree.
ListModels
List registered provider models.
ListMcpServers
List safe MCP health and frozen catalog metadata.
ReconnectMcp
Reconnect one MCP server only when discovery matches the frozen catalog.
Fields
server_id: McpServerIdConfigured MCP server identity.
Trait Implementations§
Source§impl Clone for RpcRequestKind
impl Clone for RpcRequestKind
Source§impl Debug for RpcRequestKind
impl Debug for RpcRequestKind
Source§impl<'de> Deserialize<'de> for RpcRequestKind
impl<'de> Deserialize<'de> for RpcRequestKind
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>,
Source§impl PartialEq for RpcRequestKind
impl PartialEq for RpcRequestKind
impl StructuralPartialEq for RpcRequestKind
Auto Trait Implementations§
impl Freeze for RpcRequestKind
impl RefUnwindSafe for RpcRequestKind
impl Send for RpcRequestKind
impl Sync for RpcRequestKind
impl Unpin for RpcRequestKind
impl UnsafeUnpin for RpcRequestKind
impl UnwindSafe for RpcRequestKind
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
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> ⓘ
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> ⓘ
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