pub struct JobSpec {
pub name: String,
pub schedule: JobScheduleSpec,
pub prompt: Option<String>,
pub skills: Option<Vec<String>>,
pub deliver: Option<JobDeliverSpec>,
pub model: Option<String>,
pub provider: Option<String>,
pub workdir: Option<String>,
pub repeat: Option<u32>,
pub enabled: Option<bool>,
}Expand description
One declared job: what the author wants to exist, never what the harness has made of it.
Fields§
§name: StringThe author’s key. On Hermes it is the job’s name.
schedule: JobScheduleSpecWhen it fires: interval or cron.
prompt: Option<String>The turn a fire sends to the agent.
skills: Option<Vec<String>>Skills the fire loads.
deliver: Option<JobDeliverSpec>Where the fire’s output goes.
model: Option<String>Model the job is pinned to.
provider: Option<String>Provider serving that model.
workdir: Option<String>Directory the fire runs from.
repeat: Option<u32>Fire this many times, then stop (at least 1; omit to fire forever).
enabled: Option<bool>Whether the job fires once created. false pauses it right after the
create; an existing job’s state is the operator’s.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobSpec
impl<'de> Deserialize<'de> for JobSpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JobSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JobSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for JobSpec
impl Serialize for JobSpec
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for JobSpec
Auto Trait Implementations§
impl Freeze for JobSpec
impl RefUnwindSafe for JobSpec
impl Send for JobSpec
impl Sync for JobSpec
impl Unpin for JobSpec
impl UnsafeUnpin for JobSpec
impl UnwindSafe for JobSpec
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