pub struct ToolPart {
pub id: String,
pub call_id: String,
pub message_id: String,
pub session_id: String,
pub state: ToolState,
pub tool: String,
}Expand description
A tool invocation part within a message.
Fields§
§id: StringUnique part identifier.
call_id: StringTool call identifier.
message_id: StringThe message this part belongs to.
session_id: StringThe session this part belongs to.
state: ToolStateCurrent state of the tool invocation.
tool: StringName of the tool.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolPart
impl<'de> Deserialize<'de> for ToolPart
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
impl StructuralPartialEq for ToolPart
Auto Trait Implementations§
impl Freeze for ToolPart
impl RefUnwindSafe for ToolPart
impl Send for ToolPart
impl Sync for ToolPart
impl Unpin for ToolPart
impl UnwindSafe for ToolPart
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