pub struct InteractionRequest {
pub session_id: String,
pub turn_id: String,
pub interaction_id: String,
pub kind: InteractionKind,
pub wizard: bool,
pub title: String,
pub details: Vec<String>,
pub choices: Vec<InteractionChoice>,
pub steps: Vec<InteractionStep>,
pub selected_choice_id: Option<String>,
pub selected_choice_ids: Vec<String>,
pub plan_markdown: Option<String>,
}Expand description
Interaction request sent from the service to the desktop client.
Fields§
§session_id: StringSession owning the interaction.
turn_id: StringTurn that raised the interaction.
interaction_id: StringOpaque interaction identity.
kind: InteractionKindKind of interaction required.
wizard: boolWhether the runtime expects an ordered wizard response.
title: StringDialog title or question prompt.
details: Vec<String>Supporting text shown by the client.
choices: Vec<InteractionChoice>Available choices, preserving each runtime’s opaque identity.
steps: Vec<InteractionStep>Ordered multi-step questions when the runtime request is a wizard.
selected_choice_id: Option<String>Optional selected choice identity.
selected_choice_ids: Vec<String>Optional selected choice identities, one per wizard step.
plan_markdown: Option<String>Full plan markdown for PlanApproval prompts, normalized the same
way as the transcript copy. None for other kinds and for payloads
from older services; clients hide plan-expansion UI rather than
guessing.
Trait Implementations§
Source§impl Clone for InteractionRequest
impl Clone for InteractionRequest
Source§impl Debug for InteractionRequest
impl Debug for InteractionRequest
Source§impl<'de> Deserialize<'de> for InteractionRequest
impl<'de> Deserialize<'de> for InteractionRequest
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
impl Eq for InteractionRequest
Source§impl PartialEq for InteractionRequest
impl PartialEq for InteractionRequest
Source§impl Serialize for InteractionRequest
impl Serialize for InteractionRequest
impl StructuralPartialEq for InteractionRequest
Auto Trait Implementations§
impl Forget for InteractionRequest
impl Freeze for InteractionRequest
impl RefUnwindSafe for InteractionRequest
impl Send for InteractionRequest
impl Sync for InteractionRequest
impl Unpin for InteractionRequest
impl UnsafeUnpin for InteractionRequest
impl UnwindSafe for InteractionRequest
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.