pub struct StageSpec {
pub id: String,
pub say: Option<String>,
pub ground: Option<String>,
pub collect: Vec<String>,
pub frame: Option<FrameSpec>,
pub allow: Vec<String>,
pub done: Option<Guard>,
pub commit: Option<CommitSpec>,
pub next: Vec<TransitionSpec>,
pub after: Vec<String>,
pub terminal: bool,
pub repair: Option<RepairPolicy>,
}Expand description
One authored conversation stage.
Fields§
§id: StringUnique stage id.
say: Option<String>Instruction projected as steering while the stage is active.
ground: Option<String>Grounding template projected while active ({key} interpolation).
collect: Vec<String>Slots to collect; drives the default completion (captured).
frame: Option<FrameSpec>The frame whose slots this stage collects, if set via collect_frame. Its
recognizer-bearing slots lower to an extractor that fills the slots.
allow: Vec<String>Tools available while this stage is active.
done: Option<Guard>Explicit completion guard (overrides the collect/next default).
commit: Option<CommitSpec>A confirm-before-act tool committed in this stage.
next: Vec<TransitionSpec>Forward transitions out of this stage.
after: Vec<String>Explicit dependency stage ids (in addition to next-derived edges).
terminal: boolWhether this is a terminal stage.
repair: Option<RepairPolicy>Repair policy for this stage (reprompt/escalate on stalling).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StageSpec
impl<'de> Deserialize<'de> for StageSpec
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 StageSpec
impl !RefUnwindSafe for StageSpec
impl Send for StageSpec
impl Sync for StageSpec
impl Unpin for StageSpec
impl !UnwindSafe for StageSpec
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