Struct CronAddBody
pub struct CronAddBody {Show 14 fields
pub agent: String,
pub name: Option<String>,
pub schedule: String,
pub tz: Option<String>,
pub command: Option<String>,
pub job_type: Option<String>,
pub prompt: Option<String>,
pub delivery: Option<DeliveryConfig>,
pub session_target: Option<String>,
pub model: Option<String>,
pub allowed_tools: Option<Vec<String>>,
pub delete_after_run: Option<bool>,
pub uses_memory: Option<bool>,
pub shell_output_format: Option<CronShellOutputFormat>,
}Fields§
§agent: StringConfigured agent alias the cron job will run as. Required — there is no default agent.
name: Option<String>§schedule: String§tz: Option<String>§command: Option<String>§job_type: Option<String>§prompt: Option<String>§delivery: Option<DeliveryConfig>§session_target: Option<String>Agent session context: "isolated" (default) or "main". For agent jobs,
a present value that is not one of those two names is rejected; omitted
keeps the isolated default. Same contract as the cron_add tool. Shell
jobs ignore this field.
model: Option<String>§allowed_tools: Option<Vec<String>>§delete_after_run: Option<bool>§uses_memory: Option<bool>If false, disable memory recall for this agent cron job (default: true).
shell_output_format: Option<CronShellOutputFormat>Shell output format for shell-type cron jobs. "wrapped" (default) or
"raw". Only meaningful when job_type is "shell" (or inferred as
shell when no prompt is given). Rejected for agent jobs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CronAddBody
impl<'de> Deserialize<'de> for CronAddBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CronAddBody
impl RefUnwindSafe for CronAddBody
impl Send for CronAddBody
impl Sync for CronAddBody
impl Unpin for CronAddBody
impl UnsafeUnpin for CronAddBody
impl UnwindSafe for CronAddBody
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more