Module ctx

Module ctx 

Source
Expand description

Ctx — Declarative state-to-narrative context composition.

Builds a ContextBuilder that renders session state into a natural-language summary appended to the phase instruction.

§Example

use gemini_adk_fluent_rs::prelude::*;

let ctx = Ctx::builder()
    .section("Caller")
        .field("caller_name", "Name")
        .flag("is_known_contact", "Known contact")
    .section("Call")
        .field("call_purpose", "Purpose")
        .sentiment("caller_sentiment")
    .build();

// Use with phase_defaults:
Live::builder()
    .phase_defaults(|d| d.context(ctx))

Structs§

ContextBuilder
Declarative state-to-narrative renderer.
Ctx
The Ctx namespace — factory methods for declarative context builders.
SectionBuilder
Fluent builder for a single section.