pub struct InvalidToolCallBlock {
pub block_type: String,
pub id: Option<String>,
pub name: Option<String>,
pub args: Option<String>,
pub error: Option<String>,
pub index: Option<BlockIndex>,
pub extras: Option<HashMap<String, Value>>,
}Expand description
Allowance for errors made by LLM (content block version).
Here we add an error key to surface errors made during generation.
Fields§
§block_type: StringType of the content block. Always “invalid_tool_call”.
id: Option<String>An identifier associated with the tool call.
name: Option<String>The name of the tool to be called.
args: Option<String>The arguments to the tool call.
error: Option<String>An error message associated with the tool call.
index: Option<BlockIndex>Index of block in aggregate response. Used during streaming.
extras: Option<HashMap<String, Value>>Provider-specific metadata.
Implementations§
Trait Implementations§
Source§impl Clone for InvalidToolCallBlock
impl Clone for InvalidToolCallBlock
Source§fn clone(&self) -> InvalidToolCallBlock
fn clone(&self) -> InvalidToolCallBlock
Returns a duplicate of the value. Read more
1.0.0 · 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 InvalidToolCallBlock
impl Debug for InvalidToolCallBlock
Source§impl Default for InvalidToolCallBlock
impl Default for InvalidToolCallBlock
Source§impl<'de> Deserialize<'de> for InvalidToolCallBlock
impl<'de> Deserialize<'de> for InvalidToolCallBlock
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 InvalidToolCallBlock
impl PartialEq for InvalidToolCallBlock
Source§impl Serialize for InvalidToolCallBlock
impl Serialize for InvalidToolCallBlock
impl StructuralPartialEq for InvalidToolCallBlock
Auto Trait Implementations§
impl Freeze for InvalidToolCallBlock
impl RefUnwindSafe for InvalidToolCallBlock
impl Send for InvalidToolCallBlock
impl Sync for InvalidToolCallBlock
impl Unpin for InvalidToolCallBlock
impl UnwindSafe for InvalidToolCallBlock
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