pub struct ToolCall {
pub name: String,
pub params: Vec<(String, String)>,
}Expand description
One tool call attached to a prior assistant turn, pre-rendered for the template:
params values are already strings per the template law (string arguments raw,
everything else JSON-rendered by the caller — this crate stays serde-free).
Fields§
§name: String§params: Vec<(String, String)>Trait Implementations§
impl StructuralPartialEq for ToolCall
Auto Trait Implementations§
impl Freeze for ToolCall
impl RefUnwindSafe for ToolCall
impl Send for ToolCall
impl Sync for ToolCall
impl Unpin for ToolCall
impl UnsafeUnpin for ToolCall
impl UnwindSafe for ToolCall
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