pub struct ScriptedToolCall {
pub name: String,
pub input: Value,
pub id: Option<String>,
}Expand description
A scripted tool call within a ScriptedTurn.
Represents a function call that the LLM “decides” to make.
The id field maps to the tool_use_id / function call ID used
for round-trip correlation with tool results.
Fields§
§name: StringName of the tool to call.
input: ValueInput arguments as JSON.
id: Option<String>Optional tool call ID. If not provided, a deterministic ID is generated.
Trait Implementations§
Source§impl Clone for ScriptedToolCall
impl Clone for ScriptedToolCall
Source§fn clone(&self) -> ScriptedToolCall
fn clone(&self) -> ScriptedToolCall
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScriptedToolCall
impl Debug for ScriptedToolCall
Source§impl<'de> Deserialize<'de> for ScriptedToolCall
impl<'de> Deserialize<'de> for ScriptedToolCall
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
Auto Trait Implementations§
impl Freeze for ScriptedToolCall
impl RefUnwindSafe for ScriptedToolCall
impl Send for ScriptedToolCall
impl Sync for ScriptedToolCall
impl Unpin for ScriptedToolCall
impl UnsafeUnpin for ScriptedToolCall
impl UnwindSafe for ScriptedToolCall
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