pub enum OutputContentBlock {
Text {
text: String,
},
ToolUse {
id: String,
name: String,
input: Value,
},
Thinking {
text: String,
thought_signature: Option<String>,
},
}Variants§
Text
ToolUse
Thinking
Gemini thinking/reasoning block — carries thoughtSignature needed for subsequent tool calls.
Trait Implementations§
Source§impl Clone for OutputContentBlock
impl Clone for OutputContentBlock
Source§impl Debug for OutputContentBlock
impl Debug for OutputContentBlock
Source§impl<'de> Deserialize<'de> for OutputContentBlock
impl<'de> Deserialize<'de> for OutputContentBlock
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 OutputContentBlock
impl PartialEq for OutputContentBlock
Source§impl Serialize for OutputContentBlock
impl Serialize for OutputContentBlock
impl StructuralPartialEq for OutputContentBlock
Auto Trait Implementations§
impl Forget for OutputContentBlock
impl Freeze for OutputContentBlockwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for OutputContentBlock
impl RefUnwindSafe for OutputContentBlock
impl Send for OutputContentBlock
impl Sync for OutputContentBlock
impl Unpin for OutputContentBlock
impl UnsafeUnpin for OutputContentBlockwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for OutputContentBlock
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