pub struct CompiledConversation { /* private fields */ }Expand description
A compiled conversation: the validated main CompiledFlow, the extractors
that fill its frames’ slots, any digressions, and the source spec.
Implementations§
Source§impl CompiledConversation
impl CompiledConversation
Sourcepub fn flow(&self) -> &CompiledFlow
pub fn flow(&self) -> &CompiledFlow
The governed flow IR this conversation lowered to.
Sourcepub fn extractors(&self) -> &[Extract]
pub fn extractors(&self) -> &[Extract]
The extractors lowered from collect_frame stages — register these on the
live session so each turn fills the frames’ slots from the transcript.
Sourcepub fn overlays(&self) -> &[CompiledOverlay]
pub fn overlays(&self) -> &[CompiledOverlay]
The compiled digressions/overlays.
Sourcepub fn policies(&self) -> &[Policy]
pub fn policies(&self) -> &[Policy]
The cross-cutting policy aspects attached to this conversation.
Sourcepub fn redacted_fields(&self) -> BTreeSet<String>
pub fn redacted_fields(&self) -> BTreeSet<String>
The set of state keys marked for redaction by Policy::redact.
Sourcepub fn all_extractors(&self) -> Vec<Extract>
pub fn all_extractors(&self) -> Vec<Extract>
Every extractor (main + overlays) — what Live::converse
registers so slots fill whether the main flow or a digression is active.
Sourcepub fn stack(&self, mode: Enforcement) -> FlowStack
pub fn stack(&self, mode: Enforcement) -> FlowStack
Build the runtime FlowStack — the main flow plus its digressions, with
push-on-trigger / resume-on-completion.
Sourcepub fn spec(&self) -> &ConversationSpec
pub fn spec(&self) -> &ConversationSpec
The authoring spec it was compiled from.
Sourcepub fn to_mermaid(&self) -> String
pub fn to_mermaid(&self) -> String
Render the lowered flow as a Mermaid diagram.
Sourcepub fn monitor(&self, mode: Enforcement) -> FlowMonitor
pub fn monitor(&self, mode: Enforcement) -> FlowMonitor
Build a FlowMonitor over the lowered flow.
Trait Implementations§
Source§impl Clone for CompiledConversation
impl Clone for CompiledConversation
Source§fn clone(&self) -> CompiledConversation
fn clone(&self) -> CompiledConversation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more