pub struct TestCase {
pub id: String,
pub name: Option<String>,
pub user_message: String,
pub config: AgentConfig,
pub assertions: Vec<Assertion>,
pub tags: Vec<String>,
pub retries: usize,
pub consensus_runs: Option<usize>,
pub consensus_required: Option<usize>,
pub timeout: Option<Duration>,
}Expand description
A single test case for an agent.
Fields§
§id: String§name: Option<String>§user_message: String§config: AgentConfig§assertions: Vec<Assertion>§retries: usize§consensus_runs: Option<usize>§consensus_required: Option<usize>§timeout: Option<Duration>Auto Trait Implementations§
impl Freeze for TestCase
impl !RefUnwindSafe for TestCase
impl Send for TestCase
impl Sync for TestCase
impl Unpin for TestCase
impl UnsafeUnpin for TestCase
impl !UnwindSafe for TestCase
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