pub struct NativeToolCall {
pub kind: NativeToolKind,
pub namespace: Option<String>,
pub name: String,
pub call_id: String,
pub item_id: Option<String>,
pub payload: NativeToolPayload,
pub completion: NativeToolCompletion,
pub provider_state: Option<ProviderState>,
}Expand description
Original call identity and input, independent of a canonical tool call.
This is not yet integrated with message normalization or stream decoding; consumers must not treat the presence of this type as execution support.
Fields§
§kind: NativeToolKind§namespace: Option<String>§name: String§call_id: StringThe provider’s real result-pairing identifier, never the item id.
item_id: Option<String>The output item’s identifier, when supplied by the provider.
payload: NativeToolPayload§completion: NativeToolCompletion§provider_state: Option<ProviderState>Implementations§
Source§impl NativeToolCall
impl NativeToolCall
Sourcepub fn validate_completed(&self) -> Result<()>
pub fn validate_completed(&self) -> Result<()>
Check identity and payload invariants before admitting a completed call.
Trait Implementations§
Source§impl Clone for NativeToolCall
impl Clone for NativeToolCall
Source§impl Debug for NativeToolCall
impl Debug for NativeToolCall
Source§impl<'de> Deserialize<'de> for NativeToolCall
impl<'de> Deserialize<'de> for NativeToolCall
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
Source§impl PartialEq for NativeToolCall
impl PartialEq for NativeToolCall
Source§impl Serialize for NativeToolCall
impl Serialize for NativeToolCall
impl StructuralPartialEq for NativeToolCall
Auto Trait Implementations§
impl Freeze for NativeToolCall
impl RefUnwindSafe for NativeToolCall
impl Send for NativeToolCall
impl Sync for NativeToolCall
impl Unpin for NativeToolCall
impl UnsafeUnpin for NativeToolCall
impl UnwindSafe for NativeToolCall
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