pub trait Acceptance:
Send
+ Sync
+ 'static {
// Required methods
fn name(&self) -> &str;
fn check<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
world: &'life2 World,
) -> Pin<Box<dyn Future<Output = Verdict> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
A condition the run must satisfy before the loop reports success.
Required Methods§
Sourcefn check<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
world: &'life2 World,
) -> Pin<Box<dyn Future<Output = Verdict> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn check<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
world: &'life2 World,
) -> Pin<Box<dyn Future<Output = Verdict> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Consulted when the model has stopped asking for tools. ctx carries the
task and the whole transcript; world is the filesystem and friends.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".