pub struct TaskOptions<'a> {
pub request: &'a str,
pub cwd: &'a Path,
pub env: &'a [(String, String)],
pub bounds: &'a Bounds,
pub deadline: Instant,
pub mirror: bool,
pub note: &'a dyn Fn(&str),
pub cancel: &'a dyn Fn() -> Option<i32>,
}Expand description
What one task run needs besides the Formal AI client.
Fields§
§request: &'a strNatural-language request, never executed.
cwd: &'a Path§env: &'a [(String, String)]START_* variables added to the tools’ environment.
bounds: &'a Bounds§deadline: Instant§mirror: boolMirror tool output to this process’s stdout/stderr.
note: &'a dyn Fn(&str)§cancel: &'a dyn Fn() -> Option<i32>Exit status of a received cancellation signal, if any.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TaskOptions<'a>
impl<'a> !Send for TaskOptions<'a>
impl<'a> !Sync for TaskOptions<'a>
impl<'a> !UnwindSafe for TaskOptions<'a>
impl<'a> Freeze for TaskOptions<'a>
impl<'a> Unpin for TaskOptions<'a>
impl<'a> UnsafeUnpin for TaskOptions<'a>
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