pub struct ToolCallRepairContext {
pub instructions: Option<String>,
pub system: Option<String>,
pub messages: Vec<ModelMessage>,
pub tool_call: RawToolCall,
pub tools: Vec<Tool>,
pub error: AiMuxError,
}Expand description
Context supplied to a one-shot tool-call repair callback.
Fields§
§instructions: Option<String>§system: Option<String>Deprecated AI SDK-compatible alias for instructions.
messages: Vec<ModelMessage>§tool_call: RawToolCall§tools: Vec<Tool>§error: AiMuxErrorImplementations§
Source§impl ToolCallRepairContext
impl ToolCallRepairContext
Sourcepub fn input_schema(&self, tool_name: &str) -> Value
pub fn input_schema(&self, tool_name: &str) -> Value
Return the JSON Schema for a named function tool in this repair step.
Never fails, matching the AI SDK’s inputSchema repair argument: a
name that does not resolve to a function tool (unknown — the NoSuchTool
repair scenario — or a provider tool, which carries no schema at this
layer) yields the AI SDK’s default empty-object schema.
Trait Implementations§
Source§impl Clone for ToolCallRepairContext
impl Clone for ToolCallRepairContext
Auto Trait Implementations§
impl Freeze for ToolCallRepairContext
impl RefUnwindSafe for ToolCallRepairContext
impl Send for ToolCallRepairContext
impl Sync for ToolCallRepairContext
impl Unpin for ToolCallRepairContext
impl UnsafeUnpin for ToolCallRepairContext
impl UnwindSafe for ToolCallRepairContext
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