pub struct ExpectedCall {
pub name: String,
pub required_args: Map<String, Value>,
pub ordered: bool,
}Expand description
One expected tool call within a task’s ExpectedOutcome::ToolCalls.
Matching is AST-style (BFCL-inspired), not a string diff: the recorded
call’s name must match exactly, and required_args must be a subset of
the recorded arguments (extra arguments the model supplies are ignored).
Fields§
§name: StringExpected tool name.
required_args: Map<String, Value>Required argument key/value pairs. The recorded call’s arguments must contain each of these keys with matching values; additional arguments in the recorded call are ignored.
ordered: boolWhen true, this call must occur in the given position relative to
other expected calls (order matters). When false, expected calls
may be matched against recorded calls in any order.
Trait Implementations§
Source§impl Clone for ExpectedCall
impl Clone for ExpectedCall
Source§fn clone(&self) -> ExpectedCall
fn clone(&self) -> ExpectedCall
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 ExpectedCall
impl Debug for ExpectedCall
Source§impl<'de> Deserialize<'de> for ExpectedCall
impl<'de> Deserialize<'de> for ExpectedCall
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 ExpectedCall
impl RefUnwindSafe for ExpectedCall
impl Send for ExpectedCall
impl Sync for ExpectedCall
impl Unpin for ExpectedCall
impl UnsafeUnpin for ExpectedCall
impl UnwindSafe for ExpectedCall
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