pub enum AgentMessagePart {
Text {
text: String,
},
ContentRef {
content_ref: ContentRef,
},
Redacted {
redacted_summary: String,
content_ref: Option<ContentRef>,
},
}Expand description
Enumerates the finite agent message part cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Text
Use this variant when the contract needs to represent text; selecting it has no side effect by itself.
ContentRef
Use this variant when the contract needs to represent content ref; selecting it has no side effect by itself.
Fields
§
content_ref: ContentRefContent reference where payload bytes or structured tool output are stored.
Redacted
Use this variant when the contract needs to represent redacted; selecting it has no side effect by itself.
Fields
§
content_ref: Option<ContentRef>Content reference where payload bytes or structured tool output are stored.
Trait Implementations§
Source§impl Clone for AgentMessagePart
impl Clone for AgentMessagePart
Source§fn clone(&self) -> AgentMessagePart
fn clone(&self) -> AgentMessagePart
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 AgentMessagePart
impl Debug for AgentMessagePart
Source§impl<'de> Deserialize<'de> for AgentMessagePart
impl<'de> Deserialize<'de> for AgentMessagePart
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 AgentMessagePart
impl PartialEq for AgentMessagePart
Source§fn eq(&self, other: &AgentMessagePart) -> bool
fn eq(&self, other: &AgentMessagePart) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentMessagePart
impl Serialize for AgentMessagePart
impl Eq for AgentMessagePart
impl StructuralPartialEq for AgentMessagePart
Auto Trait Implementations§
impl Freeze for AgentMessagePart
impl RefUnwindSafe for AgentMessagePart
impl Send for AgentMessagePart
impl Sync for AgentMessagePart
impl Unpin for AgentMessagePart
impl UnsafeUnpin for AgentMessagePart
impl UnwindSafe for AgentMessagePart
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