pub struct CeremonyStepHandlerRequest { /* private fields */ }Implementations§
Source§impl CeremonyStepHandlerRequest
impl CeremonyStepHandlerRequest
pub fn new( instance_id: CeremonyId, definition_name: CeremonyName, definition_version: CeremonyVersion, current_state: StateId, step_id: StepId, handler_kind: StepHandlerKind, handler_config: StepHandlerConfig, context: CeremonyContext, attempt: StepAttempt, ) -> Self
Sourcepub fn with_transcript(self, transcript: CeremonyTranscript) -> Self
pub fn with_transcript(self, transcript: CeremonyTranscript) -> Self
Attach the prior-step transcript the engine accumulated for this ceremony, so the handler can deliberate with earlier interventions in view. Defaults to an empty transcript when not set.
Sourcepub fn with_interventions(
self,
interventions: Vec<CeremonyIntervention>,
) -> Self
pub fn with_interventions( self, interventions: Vec<CeremonyIntervention>, ) -> Self
Attach the participant-created agenda accumulated by the running ceremony. Declaration order is retained so handlers see the same conversational sequence as the participants.
Sourcepub fn with_bound_specialty(self, specialty: Option<Specialty>) -> Self
pub fn with_bound_specialty(self, specialty: Option<Specialty>) -> Self
Attach the specialty this session seated for the role, so the
handler puts the work to that panel instead of the one the step
declares. None leaves the step’s own configuration deciding.
Sourcepub fn with_role(self, role_id: RoleId) -> Self
pub fn with_role(self, role_id: RoleId) -> Self
Attach the ceremony role this step is executed as, so the handler can frame the agent’s persona. Defaults to none when not set.
pub fn instance_id(&self) -> &CeremonyId
pub fn definition_name(&self) -> &CeremonyName
pub fn definition_version(&self) -> &CeremonyVersion
pub fn current_state(&self) -> &StateId
pub fn step_id(&self) -> &StepId
pub fn handler_kind(&self) -> &StepHandlerKind
pub fn handler_config(&self) -> &StepHandlerConfig
pub fn context(&self) -> &CeremonyContext
pub fn attempt(&self) -> StepAttempt
Sourcepub fn transcript(&self) -> &CeremonyTranscript
pub fn transcript(&self) -> &CeremonyTranscript
The transcript of interventions produced by earlier steps of this ceremony.
Sourcepub fn interventions(&self) -> &[CeremonyIntervention]
pub fn interventions(&self) -> &[CeremonyIntervention]
Dynamic participant requests and responses known to the ceremony.
Sourcepub fn bound_specialty(&self) -> Option<&Specialty>
pub fn bound_specialty(&self) -> Option<&Specialty>
The panel this session seated for the role, if it seated one.
Trait Implementations§
Source§impl Clone for CeremonyStepHandlerRequest
impl Clone for CeremonyStepHandlerRequest
Source§fn clone(&self) -> CeremonyStepHandlerRequest
fn clone(&self) -> CeremonyStepHandlerRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more