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§
§uuid: Option<String>§is_replay: Option<bool>§is_synthetic: Option<bool>§parent_tool_use_id: Option<String>§agent_id: Option<String>Subagent that produced the frame.
message: Option<InboundUserBody>§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