pub struct ToolAnswer { /* private fields */ }Expand description
The answer to one pending call, built only by that call and applied with
AgentRun::answer.
A driver cannot build one itself:
ⓘ
fn forge(call: CallId, other: ToolAnswer) -> ToolAnswer {
ToolAnswer { index: 0, call, ..other }
}Nor hand the run result content it built:
ⓘ
fn answer(run: &mut AgentRun, results: Vec<UserContent>) {
let _ = run.tool_results(results);
}Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ToolAnswer
impl !UnwindSafe for ToolAnswer
impl Freeze for ToolAnswer
impl Send for ToolAnswer
impl Sync for ToolAnswer
impl Unpin for ToolAnswer
impl UnsafeUnpin for ToolAnswer
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