pub struct ToolCall {
pub name: String,
pub params: Vec<(String, String)>,
pub args: Vec<(String, Val)>,
pub id: Option<String>,
}Expand description
One tool call attached to a prior assistant turn.
params values are pre-rendered strings for the qwen/step arms (string arguments raw,
everything else JSON-rendered by the caller). args/id carry the gemma4 arm’s typed
arguments and the OpenAI tool_calls[].id used to resolve tool-response names.
Fields§
§name: String§params: Vec<(String, String)>§args: Vec<(String, Val)>gemma4: typed arguments, dictsorted and dialect-rendered by the gemma arm.
id: Option<String>gemma4: the call id, matched against a following tool turn’s tool_call_id.
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