pub struct CompiledFlow { /* private fields */ }Expand description
A validated Flow plus its precomputed ToolPolicy.
Produced by Flow::compile. Holding one is proof the flow passed
compilation, so the runtime never re-discovers structural errors. This is the
IR the conversation compiler targets and the type richer surfaces build on.
Implementations§
Source§impl CompiledFlow
impl CompiledFlow
Sourcepub fn tool_policy(&self) -> &ToolPolicy
pub fn tool_policy(&self) -> &ToolPolicy
The precomputed tool policy.
Sourcepub fn to_mermaid(&self) -> String
pub fn to_mermaid(&self) -> String
Render the flow as a Mermaid diagram.
Trait Implementations§
Source§impl Clone for CompiledFlow
impl Clone for CompiledFlow
Source§fn clone(&self) -> CompiledFlow
fn clone(&self) -> CompiledFlow
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 moreAuto Trait Implementations§
impl Freeze for CompiledFlow
impl !RefUnwindSafe for CompiledFlow
impl Send for CompiledFlow
impl Sync for CompiledFlow
impl Unpin for CompiledFlow
impl !UnwindSafe for CompiledFlow
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