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 moreAuto Trait Implementations§
impl Freeze for CompiledConversation
impl !RefUnwindSafe for CompiledConversation
impl Send for CompiledConversation
impl Sync for CompiledConversation
impl Unpin for CompiledConversation
impl !UnwindSafe for CompiledConversation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].