pub struct Routine {Show 14 fields
pub id: String,
pub name: String,
pub instructions: String,
pub enabled: bool,
pub when: Vec<Trigger>,
pub project: Option<String>,
pub model: Option<String>,
pub allowed: Approvals,
pub grants: Vec<String>,
pub tell: Tell,
pub channels: Vec<String>,
pub missed: Missed,
pub keep: u32,
pub created_at: i64,
}Expand description
A saved routine.
Fields§
§id: String[a-z0-9-], made by the engine for new routines.
name: String§instructions: StringWhat a run is asked to do (the prompt).
enabled: bool§when: Vec<Trigger>What starts it besides Run now.
project: Option<String>The project (workspace id) its runs work in; None: a folder of its own.
model: Option<String>The model profile its runs use; None: the default model.
allowed: ApprovalsWhat its runs may do without asking (default Read only).
grants: Vec<String>Tools its runs may call without asking beyond allowed (“Always for this routine”).
tell: TellWhen a run tells the user.
channels: Vec<String>Where reports go (desktop, or a plugin’s plugin:channel).
missed: MissedWhat happens to runs missed while byob wasn’t running.
keep: u32How many runs (with their chats) to keep.
created_at: i64Milliseconds since the epoch; set by the engine.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Routine
impl<'de> Deserialize<'de> for Routine
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Routine, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Routine, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Routine
impl Serialize for Routine
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 Routine
Auto Trait Implementations§
impl Forget for Routine
impl Freeze for Routinewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Trigger>: Freeze,
PhantomData<String>: Freeze,
impl Move for Routine
impl RefUnwindSafe for Routine
impl Send for Routine
impl Sync for Routine
impl Unpin for Routine
impl UnsafeUnpin for Routinewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Trigger>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Routine
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