pub struct InputMessage {
pub content: InputMessageContent,
pub group_id: ThreadId,
pub metadata: Option<Value>,
pub synthetic: Option<SyntheticKind>,
pub display_as: Option<Vec<DisplaySegment>>,
pub subscription: bool,
}Fields§
§content: InputMessageContent§group_id: ThreadId§metadata: Option<Value>§synthetic: Option<SyntheticKind>§display_as: Option<Vec<DisplaySegment>>Optional structured display segments for the CLI/UI. When present, the UI shows these instead of the full tool result text. The model still sees the full text.
subscription: boolWhen true, indicates this tool result started a subscription — the
runtime should track the tool call ID as an active subscription so
the agent can later cancel it via cancel_subscription.
Implementations§
Trait Implementations§
Source§impl Clone for InputMessage
impl Clone for InputMessage
Source§fn clone(&self) -> InputMessage
fn clone(&self) -> InputMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputMessage
impl Debug for InputMessage
Source§impl<'de> Deserialize<'de> for InputMessage
impl<'de> Deserialize<'de> for InputMessage
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
Auto Trait Implementations§
impl Freeze for InputMessage
impl RefUnwindSafe for InputMessage
impl Send for InputMessage
impl Sync for InputMessage
impl Unpin for InputMessage
impl UnsafeUnpin for InputMessage
impl UnwindSafe for InputMessage
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