pub struct ProviderToolCall {
pub tool_call_id: ToolCallId,
pub canonical_tool_name: CanonicalToolName,
pub requested_args_refs: Vec<ContentRef>,
pub redacted_args_summary: String,
}Expand description
Canonical provider-side request for a tool call. Constructing this value does not execute a tool, resolve arguments, append journals, or publish events. Runtime code must lower it into the SDK tool router, policy, journal intent/result, event, and effect contracts.
Fields§
§tool_call_id: ToolCallIdStable tool call id used for typed lineage, lookup, or dedupe.
canonical_tool_name: CanonicalToolNameCanonical tool name requested by the provider output.
requested_args_refs: Vec<ContentRef>Typed requested args refs references. Resolving them is separate from constructing this record.
redacted_args_summary: StringRedacted summary for display, logs, events, or telemetry. It should describe the value without exposing raw private content.
Implementations§
Source§impl ProviderToolCall
impl ProviderToolCall
Sourcepub fn new(
tool_call_id: ToolCallId,
canonical_tool_name: CanonicalToolName,
redacted_args_summary: impl Into<String>,
) -> Self
pub fn new( tool_call_id: ToolCallId, canonical_tool_name: CanonicalToolName, redacted_args_summary: impl Into<String>, ) -> Self
Creates a provider tool-call DTO. This is data construction only; the runtime must perform routing, approval, journaling, and execution separately.
Sourcepub fn with_args_ref(self, args_ref: ContentRef) -> Self
pub fn with_args_ref(self, args_ref: ContentRef) -> Self
Returns this value with one requested argument content ref added. The ref is metadata only; resolving it is a separate policy-gated content operation.
Trait Implementations§
Source§impl Clone for ProviderToolCall
impl Clone for ProviderToolCall
Source§fn clone(&self) -> ProviderToolCall
fn clone(&self) -> ProviderToolCall
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProviderToolCall
impl Debug for ProviderToolCall
Source§impl<'de> Deserialize<'de> for ProviderToolCall
impl<'de> Deserialize<'de> for ProviderToolCall
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>,
impl Eq for ProviderToolCall
Source§impl PartialEq for ProviderToolCall
impl PartialEq for ProviderToolCall
Source§fn eq(&self, other: &ProviderToolCall) -> bool
fn eq(&self, other: &ProviderToolCall) -> bool
self and other values to be equal, and is used by ==.