pub struct RepairRequest<'a> {
pub tool_call: &'a ToolCall,
pub tools: &'a ToolSet,
pub system: Option<&'a Instructions>,
pub messages: &'a [Message],
pub error: &'a Error,
}Expand description
Information handed to a ToolCallRepair.
Fields§
§tool_call: &'a ToolCallThe tool call as issued by the model.
tools: &'a ToolSetThe tool set of the call.
system: Option<&'a Instructions>System instructions of the call.
messages: &'a [Message]Messages sent to the model in this step.
error: &'a ErrorThe error that triggered the repair (Error::NoSuchTool or
Error::InvalidToolInput).
Implementations§
Source§impl RepairRequest<'_>
impl RepairRequest<'_>
Sourcepub fn input_schema(&self, tool_name: &str) -> Option<&JsonValue>
pub fn input_schema(&self, tool_name: &str) -> Option<&JsonValue>
JSON schema of tool_name’s input, when the tool exists.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RepairRequest<'a>
impl<'a> !UnwindSafe for RepairRequest<'a>
impl<'a> Freeze for RepairRequest<'a>
impl<'a> Send for RepairRequest<'a>
impl<'a> Sync for RepairRequest<'a>
impl<'a> Unpin for RepairRequest<'a>
impl<'a> UnsafeUnpin for RepairRequest<'a>
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