Struct PhaseContract
pub struct PhaseContract {
pub name: String,
pub terminal: bool,
pub tools_enabled: Option<Vec<String>>,
pub needs: Vec<String>,
pub requires: Vec<String>,
pub preparations: Vec<PreparationContract>,
pub presents: Vec<String>,
pub clear_on_enter: Vec<String>,
pub transitions: Vec<TransitionContract>,
pub has_guard: bool,
pub prompt_on_enter: bool,
}Expand description
A conversation phase declaration.
Fields§
§name: StringPhase name.
terminal: boolWhether this phase is terminal.
tools_enabled: Option<Vec<String>>Tools enabled in the phase; None means all tools.
needs: Vec<String>State keys this phase gathers.
requires: Vec<String>State keys required before entering the phase.
preparations: Vec<PreparationContract>Preparation effects registered for this phase.
presents: Vec<String>Semantic concepts presented on phase entry.
clear_on_enter: Vec<String>State keys cleared on phase entry.
transitions: Vec<TransitionContract>Outbound transitions.
has_guard: boolWhether the phase has an entry guard closure.
prompt_on_enter: boolWhether the phase prompts the model immediately on entry.
Trait Implementations§
§impl Clone for PhaseContract
impl Clone for PhaseContract
§fn clone(&self) -> PhaseContract
fn clone(&self) -> PhaseContract
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PhaseContract
impl Debug for PhaseContract
§impl<'de> Deserialize<'de> for PhaseContract
impl<'de> Deserialize<'de> for PhaseContract
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PhaseContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PhaseContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for PhaseContract
impl Serialize for PhaseContract
§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
Auto Trait Implementations§
impl Freeze for PhaseContract
impl RefUnwindSafe for PhaseContract
impl Send for PhaseContract
impl Sync for PhaseContract
impl Unpin for PhaseContract
impl UnwindSafe for PhaseContract
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