#[non_exhaustive]pub struct InvalidToolCallContext {
pub tool_name: String,
pub tool_call_id: Option<String>,
pub internal_call_id: Option<String>,
pub args: Option<String>,
pub available_tools: Vec<String>,
pub allowed_tools: Vec<String>,
pub tool_choice: Option<ToolChoice>,
pub chat_history: Vec<Message>,
pub is_streaming: bool,
}Expand description
Diagnostics for an invalid model-emitted tool call.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tool_name: StringName emitted by the model.
tool_call_id: Option<String>Provider tool-call id, when present.
internal_call_id: Option<String>Rig correlation id, when present.
args: Option<String>Emitted JSON arguments, when present.
available_tools: Vec<String>Executable tools advertised for the turn.
allowed_tools: Vec<String>Tools permitted by the active tool choice.
tool_choice: Option<ToolChoice>Active tool choice.
chat_history: Vec<Message>Diagnostic history including the rejected output.
is_streaming: boolWhether the call came from the streaming path.
Trait Implementations§
Source§impl Clone for InvalidToolCallContext
impl Clone for InvalidToolCallContext
Source§fn clone(&self) -> InvalidToolCallContext
fn clone(&self) -> InvalidToolCallContext
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 moreAuto Trait Implementations§
impl Freeze for InvalidToolCallContext
impl RefUnwindSafe for InvalidToolCallContext
impl Send for InvalidToolCallContext
impl Sync for InvalidToolCallContext
impl Unpin for InvalidToolCallContext
impl UnsafeUnpin for InvalidToolCallContext
impl UnwindSafe for InvalidToolCallContext
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