pub enum BlockContent {
Parts(Vec<ContentPart>),
ToolCall(ToolCallPayload),
ToolResult(ToolResultPayload),
}Expand description
The content shape of a block. Three shapes: one message’s ordered parts (any role), a tool call, a tool result.
Variants§
Parts(Vec<ContentPart>)
One logical message’s ordered content parts (text and media references) — atomic at the block: identity, one content identity; execution pairing is enforced by specialized append operations rather than by importing arbitrary facts.
ToolCall(ToolCallPayload)
A model-issued tool invocation.
ToolResult(ToolResultPayload)
The recorded outcome of a prior call, paired by
ToolResultPayload::call_block_id.
Trait Implementations§
Source§impl Clone for BlockContent
impl Clone for BlockContent
Source§impl Debug for BlockContent
impl Debug for BlockContent
Source§impl<'de> Deserialize<'de> for BlockContent
impl<'de> Deserialize<'de> for BlockContent
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 BlockContent
impl PartialEq for BlockContent
Source§impl Serialize for BlockContent
impl Serialize for BlockContent
impl StructuralPartialEq for BlockContent
Auto Trait Implementations§
impl Freeze for BlockContent
impl RefUnwindSafe for BlockContent
impl Send for BlockContent
impl Sync for BlockContent
impl Unpin for BlockContent
impl UnsafeUnpin for BlockContent
impl UnwindSafe for BlockContent
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