#[non_exhaustive]pub struct ToolCallRecord {
pub node_id: String,
pub id: String,
pub name: String,
pub provider: String,
pub tool: String,
pub arguments: Value,
pub is_error: Option<bool>,
}Expand description
One tool call made by an agent node.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.node_id: StringNode that made the call.
id: String§name: StringName the model called (the tool’s exposed name).
provider: StringTool provider and tool name, when the agent’s tool_calls log has them.
tool: String§arguments: Value§is_error: Option<bool>Implementations§
Trait Implementations§
Source§impl Clone for ToolCallRecord
impl Clone for ToolCallRecord
Source§impl Debug for ToolCallRecord
impl Debug for ToolCallRecord
Source§impl Default for ToolCallRecord
impl Default for ToolCallRecord
Source§impl<'de> Deserialize<'de> for ToolCallRecord
impl<'de> Deserialize<'de> for ToolCallRecord
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 ToolCallRecord
impl PartialEq for ToolCallRecord
Source§impl Serialize for ToolCallRecord
impl Serialize for ToolCallRecord
impl StructuralPartialEq for ToolCallRecord
Auto Trait Implementations§
impl Forget for ToolCallRecord
impl Freeze for ToolCallRecord
impl Move for ToolCallRecord
impl RefUnwindSafe for ToolCallRecord
impl Send for ToolCallRecord
impl Sync for ToolCallRecord
impl Unpin for ToolCallRecord
impl UnsafeUnpin for ToolCallRecord
impl UnwindSafe for ToolCallRecord
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