pub struct ToolCall {
pub id: Arc<str>,
pub name: Arc<str>,
pub arguments_json: Arc<str>,
}Expand description
A complete tool call emitted by a language model. Only complete calls enter
the pipeline: an adapter assembles provider-specific fragments into one
arguments_json, synthesizes an id
where the provider has none, and owns all JSON validation — core does none.
Fields§
§id: Arc<str>Correlates the call with a later tool result.
name: Arc<str>Model-facing tool name.
arguments_json: Arc<str>Complete tool arguments as one JSON object; never a fragment.
Trait Implementations§
impl Eq for ToolCall
Source§impl From<ToolCall> for ModelFrame
impl From<ToolCall> for ModelFrame
Source§fn from(call: ToolCall) -> ModelFrame
fn from(call: ToolCall) -> ModelFrame
Wrap a complete ToolCall as ModelFrame::ToolCall.
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