pub struct ExecCall { /* private fields */ }Expand description
A tool call the driver should execute, answered with ExecCall::answer.
Implementations§
Source§impl ExecCall
impl ExecCall
Sourcepub fn tool_call(&self) -> &ToolCall
pub fn tool_call(&self) -> &ToolCall
The call as the model emitted it, with any repaired tool name applied.
Sourcepub fn answer(self, result: ToolResult) -> ToolAnswer
pub fn answer(self, result: ToolResult) -> ToolAnswer
Answer this call with the result of executing it (or of a hook
skipping it, as ToolResult::skipped).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ExecCall
impl<'de> Deserialize<'de> for ExecCall
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 Forget for ExecCall
impl Freeze for ExecCall
impl Move for ExecCall
impl RefUnwindSafe for ExecCall
impl Send for ExecCall
impl Sync for ExecCall
impl Unpin for ExecCall
impl UnsafeUnpin for ExecCall
impl UnwindSafe for ExecCall
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.