Struct TraceExpects
pub struct TraceExpects {
pub response_contains: Vec<String>,
pub response_not_contains: Vec<String>,
pub tools_used: Vec<String>,
pub tools_not_used: Vec<String>,
pub max_tool_calls: Option<usize>,
pub all_tools_succeeded: Option<bool>,
pub response_matches: Vec<String>,
}Expand description
Declarative expectations for grading a run.
Fields§
§response_contains: Vec<String>Substrings the final response must contain.
response_not_contains: Vec<String>Substrings the final response must NOT contain.
tools_used: Vec<String>Tool names that must have been called.
tools_not_used: Vec<String>Tool names that must NOT have been called.
max_tool_calls: Option<usize>Upper bound on the number of tool calls.
all_tools_succeeded: Option<bool>If set, whether every tool call must have succeeded.
response_matches: Vec<String>Regex patterns the final response must match.
Trait Implementations§
Source§impl Clone for TraceExpects
impl Clone for TraceExpects
Source§fn clone(&self) -> TraceExpects
fn clone(&self) -> TraceExpects
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TraceExpects
impl Debug for TraceExpects
Source§impl Default for TraceExpects
impl Default for TraceExpects
Source§fn default() -> TraceExpects
fn default() -> TraceExpects
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TraceExpects
impl<'de> Deserialize<'de> for TraceExpects
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 TraceExpects
impl RefUnwindSafe for TraceExpects
impl Send for TraceExpects
impl Sync for TraceExpects
impl Unpin for TraceExpects
impl UnsafeUnpin for TraceExpects
impl UnwindSafe for TraceExpects
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more