#[non_exhaustive]pub struct InboundUserMessage {
pub uuid: Option<String>,
pub is_replay: Option<bool>,
pub is_synthetic: Option<bool>,
pub parent_tool_use_id: Option<String>,
pub agent_id: Option<String>,
pub message: Option<InboundUserBody>,
pub tool_use_result: Option<Value>,
}Expand description
A user frame: the echo of a prompt, tool results, or a message the
CLI added itself (is_synthetic).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.uuid: Option<String>Message uuid; for an echo, the host prompt’s UserMessage::uuid.
is_replay: Option<bool>isReplay: echo of a host prompt.
is_synthetic: Option<bool>isSynthetic: the CLI added the message itself.
parent_tool_use_id: Option<String>Tool call this message belongs to.
agent_id: Option<String>Subagent that produced the frame.
message: Option<InboundUserBody>Message body.
tool_use_result: Option<Value>The tool’s full structured output (e.g. Bash {stdout, stderr, …}),
beside the text sent to the model.
Implementations§
Source§impl InboundUserMessage
impl InboundUserMessage
Sourcepub fn tool_results(&self) -> Vec<InboundToolResult>
pub fn tool_results(&self) -> Vec<InboundToolResult>
The tool_result blocks of this frame.
Trait Implementations§
Source§impl Clone for InboundUserMessage
impl Clone for InboundUserMessage
Source§impl Debug for InboundUserMessage
impl Debug for InboundUserMessage
Source§impl<'de> Deserialize<'de> for InboundUserMessage
impl<'de> Deserialize<'de> for InboundUserMessage
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 Forget for InboundUserMessage
impl Freeze for InboundUserMessage
impl Move for InboundUserMessage
impl RefUnwindSafe for InboundUserMessage
impl Send for InboundUserMessage
impl Sync for InboundUserMessage
impl Unpin for InboundUserMessage
impl UnsafeUnpin for InboundUserMessage
impl UnwindSafe for InboundUserMessage
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