pub struct PreparedToolCall {
pub call_id: String,
pub tool_name: String,
pub args: Value,
pub replay: Option<ProviderReplayMeta>,
pub prepared_payload: Value,
}Expand description
Runtime-prepared executable tool call.
The raw model/provider identity remains visible, but any argument rewrites and provider-owned context projections are frozen before the call crosses a runtime effect or process boundary.
Fields§
§call_id: String§tool_name: String§args: Value§replay: Option<ProviderReplayMeta>§prepared_payload: ValueImplementations§
Source§impl PreparedToolCall
impl PreparedToolCall
pub fn identity(call: PendingToolCall) -> Self
pub fn from_parts( call_id: impl Into<String>, tool_name: impl Into<String>, args: Value, replay: Option<ProviderReplayMeta>, prepared_payload: Value, ) -> Self
Trait Implementations§
Source§impl Clone for PreparedToolCall
impl Clone for PreparedToolCall
Source§fn clone(&self) -> PreparedToolCall
fn clone(&self) -> PreparedToolCall
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 PreparedToolCall
impl Debug for PreparedToolCall
Source§impl<'de> Deserialize<'de> for PreparedToolCall
impl<'de> Deserialize<'de> for PreparedToolCall
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 PreparedToolCall
impl RefUnwindSafe for PreparedToolCall
impl Send for PreparedToolCall
impl Sync for PreparedToolCall
impl Unpin for PreparedToolCall
impl UnsafeUnpin for PreparedToolCall
impl UnwindSafe for PreparedToolCall
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