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§
- Context
Builder - Declarative state-to-narrative renderer.
- Ctx
- The
Ctxnamespace — factory methods for declarative context builders. - Section
Builder - Fluent builder for a single section.