pub struct StreamedInvalidToolCall {
pub tool_call: ToolCall,
pub args: Option<String>,
pub executable_tool_names: BTreeSet<String>,
pub allowed_tool_names: BTreeSet<String>,
}Expand description
One invalid tool call surfaced mid-stream, awaiting a resolution from
AgentRun::resolve_streamed_invalid_tool_call.
Fields§
§tool_call: ToolCallThe rejected tool call.
args: Option<String>Raw argument payload for diagnostics, when available.
executable_tool_names: BTreeSet<String>Executable Rig tools advertised to the provider for this turn.
allowed_tool_names: BTreeSet<String>Tools allowed by the active tool choice for this turn.
Trait Implementations§
Source§impl Clone for StreamedInvalidToolCall
impl Clone for StreamedInvalidToolCall
Source§impl Debug for StreamedInvalidToolCall
impl Debug for StreamedInvalidToolCall
Source§impl<'de> Deserialize<'de> for StreamedInvalidToolCall
impl<'de> Deserialize<'de> for StreamedInvalidToolCall
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 StreamedInvalidToolCall
impl RefUnwindSafe for StreamedInvalidToolCall
impl Send for StreamedInvalidToolCall
impl Sync for StreamedInvalidToolCall
impl Unpin for StreamedInvalidToolCall
impl UnsafeUnpin for StreamedInvalidToolCall
impl UnwindSafe for StreamedInvalidToolCall
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.