pub struct UserEnvelope {
pub role: String,
pub content: Vec<ContentBlock>,
pub extras: Extras,
}Expand description
Envelope inside a User message.
Fields§
§role: StringFixed value "user".
content: Vec<ContentBlock>Content blocks - usually ToolResult blocks when reporting
tool outputs. Wire shape is list | str: a bare string is
accepted on the way in and normalised into a single
ContentBlock::Text block; serialising always emits the
list form.
extras: ExtrasFields of the envelope forge does not model, kept verbatim.
Trait Implementations§
Source§impl Clone for UserEnvelope
impl Clone for UserEnvelope
Source§impl Debug for UserEnvelope
impl Debug for UserEnvelope
Source§impl<'de> Deserialize<'de> for UserEnvelope
impl<'de> Deserialize<'de> for UserEnvelope
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
Source§impl PartialEq for UserEnvelope
impl PartialEq for UserEnvelope
Source§impl Serialize for UserEnvelope
impl Serialize for UserEnvelope
impl StructuralPartialEq for UserEnvelope
Auto Trait Implementations§
impl Freeze for UserEnvelope
impl RefUnwindSafe for UserEnvelope
impl Send for UserEnvelope
impl Sync for UserEnvelope
impl Unpin for UserEnvelope
impl UnsafeUnpin for UserEnvelope
impl UnwindSafe for UserEnvelope
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