Module live_builders

Module live_builders 

Source
Expand description

Sub-builders for the fluent Live API.

These builders use a “move self, return Live” pattern so that the caller’s chain stays fully typed and fluent:

Live::builder()
    .phase("greeting")
        .instruction("Welcome the user")
        .transition("main", |s| s.get::<bool>("greeted").unwrap_or(false))
        .done()
    .phase("main")
        .instruction("Handle the conversation")
        .terminal()
        .done()
    .initial_phase("greeting")
    .connect_vertex(project, location, token)
    .await?;

Structs§

PhaseBuilder
Builder for a conversation phase.
PhaseDefaults
Default modifiers and settings inherited by all phases.
WatchBuilder
Builder for a state watcher.