pub struct ToolUIPart {Show 13 fields
pub part_type: String,
pub tool_call_id: String,
pub tool_name: Option<String>,
pub title: Option<String>,
pub provider_executed: Option<bool>,
pub state: ToolState,
pub input: Option<Value>,
pub output: Option<Value>,
pub error_text: Option<String>,
pub call_provider_metadata: Option<Value>,
pub raw_input: Option<Value>,
pub preliminary: Option<bool>,
pub approval: Option<ToolApproval>,
}Expand description
Tool invocation part.
Fields§
§part_type: StringPart type. Must be dynamic-tool or tool-*.
tool_call_id: StringTool call identifier.
tool_name: Option<String>Tool name (required for dynamic-tool).
title: Option<String>Optional display title.
provider_executed: Option<bool>Whether the provider executed this tool directly.
state: ToolStateTool execution state.
input: Option<Value>Tool input payload.
output: Option<Value>Tool output payload.
error_text: Option<String>Tool error text.
call_provider_metadata: Option<Value>Provider metadata associated with the tool input call.
raw_input: Option<Value>Raw input when parsing fails (AI SDK compatibility for output-error).
preliminary: Option<bool>Marks provisional tool outputs.
approval: Option<ToolApproval>Optional approval state payload.
Implementations§
Source§impl ToolUIPart
impl ToolUIPart
Trait Implementations§
Source§impl Clone for ToolUIPart
impl Clone for ToolUIPart
Source§fn clone(&self) -> ToolUIPart
fn clone(&self) -> ToolUIPart
Returns a duplicate of the value. Read more
1.0.0 · 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 ToolUIPart
impl Debug for ToolUIPart
Source§impl<'de> Deserialize<'de> for ToolUIPart
impl<'de> Deserialize<'de> for ToolUIPart
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 ToolUIPart
impl PartialEq for ToolUIPart
Source§impl Serialize for ToolUIPart
impl Serialize for ToolUIPart
impl StructuralPartialEq for ToolUIPart
Auto Trait Implementations§
impl Freeze for ToolUIPart
impl RefUnwindSafe for ToolUIPart
impl Send for ToolUIPart
impl Sync for ToolUIPart
impl Unpin for ToolUIPart
impl UnwindSafe for ToolUIPart
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