pub struct Job {
pub name: String,
pub schedule: Schedule,
pub prompt: String,
pub enabled: bool,
pub route: Option<String>,
pub workdir: Option<String>,
pub skills: Vec<String>,
pub deliver: Option<String>,
pub schema: Option<String>,
}Expand description
A named job: what to say, when to say it.
Fields§
§name: String§schedule: Schedule§prompt: String§enabled: bool§route: Option<String>Run this route and no other. None follows the config’s chain.
workdir: Option<String>This job’s workspace: the file tools are confined to it, shell runs in it, and the
AGENT.md walk begins there. None keeps whatever [tools] workspace_root says. The
directory is checked at add; ~/ is expanded at both ends.
skills: Vec<String>Skills to load before the prompt runs.
deliver: Option<String>Write the reply here too (/abs/path or ~/path). None writes only the run log.
schema: Option<String>Demand a shape: a path to a JSON schema, or the schema itself. None falls back to
[agent] output_schema. The schema rides in the request as response_format; a reply
that is not a JSON document fails the job, which is what run --schema does too.
Trait Implementations§
impl Eq for Job
impl StructuralPartialEq for Job
Auto Trait Implementations§
impl Forget for Job
impl Freeze for Job
impl Move for Job
impl RefUnwindSafe for Job
impl Send for Jobwhere
RawVecInner: Send,
impl Sync for Jobwhere
RawVecInner: Sync,
impl Unpin for Job
impl UnsafeUnpin for Jobwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Jobwhere
RawVecInner: UnwindSafe,
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.