pub struct FilesExist { /* private fields */ }Expand description
Every named path must exist under the workspace root, and be non-empty.
“Convert this PDF to Word” has an objective answer that costs no tokens to check: is there a .docx, and does it have bytes in it?
Implementations§
Source§impl FilesExist
impl FilesExist
Trait Implementations§
Source§impl Acceptance for FilesExist
impl Acceptance for FilesExist
Source§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,
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.Auto Trait Implementations§
impl Freeze for FilesExist
impl RefUnwindSafe for FilesExist
impl Send for FilesExist
impl Sync for FilesExist
impl Unpin for FilesExist
impl UnsafeUnpin for FilesExist
impl UnwindSafe for FilesExist
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