pub struct ExpectedToolCall {
pub name: String,
pub args: Map<String, Value>,
}Expand description
One expected tool call in a trajectory: a name, plus optional matchers against its arguments.
Fields§
§name: StringThe tool name, exactly as journaled (the tool field of the canonical
tool-call request payload).
args: Map<String, Value>Argument matchers: JSON pointer (RFC 6901) into the call’s arguments
mapped to the expected value. {"op": "add"}-style checks are written
{"/op": "add"}; the empty pointer "" matches the whole arguments
value. An empty map matches any arguments.
Implementations§
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
Source§impl PartialEq for ExpectedToolCall
impl PartialEq for ExpectedToolCall
Source§impl Serialize for ExpectedToolCall
impl Serialize for ExpectedToolCall
impl StructuralPartialEq for ExpectedToolCall
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