pub struct ExpectedToolCall {
pub name: String,
pub order: Option<usize>,
}Expand description
An expected tool call in a trajectory.
Fields§
§name: StringTool name (exact match).
order: Option<usize>If Some(n), the tool must be called at position n (0-indexed).
If None, the tool must appear anywhere in the trajectory.
Trait Implementations§
Source§impl Clone for ExpectedToolCall
impl Clone for ExpectedToolCall
Source§fn clone(&self) -> ExpectedToolCall
fn clone(&self) -> ExpectedToolCall
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExpectedToolCall
impl Debug for ExpectedToolCall
Source§impl<'de> Deserialize<'de> for ExpectedToolCall
impl<'de> Deserialize<'de> for ExpectedToolCall
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 Freeze for ExpectedToolCall
impl RefUnwindSafe for ExpectedToolCall
impl Send for ExpectedToolCall
impl Sync for ExpectedToolCall
impl Unpin for ExpectedToolCall
impl UnsafeUnpin for ExpectedToolCall
impl UnwindSafe for ExpectedToolCall
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