pub struct CallDeferred {
pub tool_name: String,
pub args: Value,
pub reason: Option<String>,
pub tool_call_id: Option<String>,
}Expand description
Tool call was deferred for later execution.
Fields§
§tool_name: StringTool name.
args: ValueTool arguments.
reason: Option<String>Reason for deferral.
tool_call_id: Option<String>Tool call ID.
Implementations§
Trait Implementations§
Source§impl Clone for CallDeferred
impl Clone for CallDeferred
Source§fn clone(&self) -> CallDeferred
fn clone(&self) -> CallDeferred
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CallDeferred
impl Debug for CallDeferred
Source§impl<'de> Deserialize<'de> for CallDeferred
impl<'de> Deserialize<'de> for CallDeferred
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
Source§impl Display for CallDeferred
impl Display for CallDeferred
Source§impl Error for CallDeferred
impl Error for CallDeferred
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CallDeferred> for SerdesAiError
impl From<CallDeferred> for SerdesAiError
Source§fn from(source: CallDeferred) -> Self
fn from(source: CallDeferred) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CallDeferred
impl RefUnwindSafe for CallDeferred
impl Send for CallDeferred
impl Sync for CallDeferred
impl Unpin for CallDeferred
impl UnwindSafe for CallDeferred
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