pub struct ScheduledTask {
pub id: String,
pub name: String,
pub cron: String,
pub channel: String,
pub prompt: String,
pub output_routing: OutputRouting,
pub enabled: bool,
pub created_by: TaskCreator,
pub evaluator: Option<String>,
}Expand description
A scheduled task definition that plugins can contribute.
Fields§
§id: String§name: String§cron: StringCron expression (6-field: sec min hour dom month dow)
channel: StringTrust channel for the session
prompt: StringPrompt sent to the LLM
output_routing: OutputRoutingHow to route the output
enabled: boolWhether this task is active
created_by: TaskCreatorWho created this task
evaluator: Option<String>Optional evaluator type — if set, the scheduler checks preconditions before firing. Currently supported: “pipeline” (checks if pipeline documents have changed since last fire).
Trait Implementations§
Source§impl Clone for ScheduledTask
impl Clone for ScheduledTask
Source§impl Debug for ScheduledTask
impl Debug for ScheduledTask
Source§impl<'de> Deserialize<'de> for ScheduledTask
impl<'de> Deserialize<'de> for ScheduledTask
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 ScheduledTask
impl RefUnwindSafe for ScheduledTask
impl Send for ScheduledTask
impl Sync for ScheduledTask
impl Unpin for ScheduledTask
impl UnsafeUnpin for ScheduledTask
impl UnwindSafe for ScheduledTask
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