pub struct Run {
pub role: String,
pub session: String,
pub prompt: String,
pub prompt_file: Option<String>,
pub skills: Vec<String>,
pub limits: BTreeMap<String, Expr>,
}Expand description
What runs while a card is in a status: an actor of a role’s lane in a named session slot of the card.
Fields§
§role: StringThe role whose lane (the profile it names) runs it.
session: StringThe card’s session slot it runs in: a live session in the slot is kept, a lost one resumed, an empty slot started fresh. Different slots are different sessions (a reviewer never works in the implementer’s).
prompt: StringWhat the actor is told when it starts: a template over the card ({{card.id}}, {{context}}) and
{{doors}}, the events the actor may send in this status, generated from its transitions.
prompt_file: Option<String>Prompt file relative to the orchestration home.
skills: Vec<String>Skills the actor’s session is given.
limits: BTreeMap<String, Expr>Limits on the run, each an expression in seconds or a count (runtime, heartbeat, …); the engine emits
an event when one passes (timed_out, stale, …).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Run
impl<'de> Deserialize<'de> for Run
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Run, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Run, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for Run
Source§impl JsonSchema for Run
impl JsonSchema for Run
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Serialize for Run
impl Serialize for Run
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,
impl StructuralPartialEq for Run
Auto Trait Implementations§
impl Freeze for Run
impl RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnsafeUnpin for Run
impl UnwindSafe for Run
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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
key and return true if they are equal.