feat(builder): agent story-link narration (AgentBuilder) #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/agent-narration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The AI agent value-add, guardrail-correct.
AgentBuilderwrapsDeterministicBuilder— route + prices stay deterministic + sourced — and asks the LLM for a short per-stop story-link ("why this place matters to your family") from the stop's family event only. The agent narrates; it never sets coordinates, prices, or family facts (FR-AGT-15/16/17, FR-TRP-13). Best-effort: an LLM error leaves the valid trip unchanged.Changes
agent_builder::AgentBuilder(deps geneatrip-agent) → attachesStoryLink{why, source:"agent"}to each stop's first activity.AgentBuilderwhenGENEATRIP_LLM_BASEis set (Qwen/Ollama or Kimi/UmansAI viaOpenAiCompat), elseDeterministicBuilder. Trip view renders ⭐ + the why text.Verification
just qagreen. Tested withScriptedProvider(no live LLM): story-link attached + sourced "agent". Live narration needs an LLM endpoint configured.Traces: FR-TRP-13, FR-AGT-15/16/17 · tech-spec 04/03.
The "AI agent" value-add, guardrail-correct: AgentBuilder wraps the DeterministicBuilder (route + prices stay deterministic + sourced) and asks the LlmProvider for a short per-stop story-link — "why this place matters to your family" — from the stop's family event only. The agent NARRATES; it never sets coordinates, prices, or family facts (FR-AGT-15/16/17, FR-TRP-13). Narration is best-effort (LLM error leaves the valid trip unchanged). - builder: agent_builder::AgentBuilder (deps geneatrip-agent); attaches StoryLink{why, source:"agent"} to each stop's first activity. - api: uses AgentBuilder when GENEATRIP_LLM_BASE is set (Qwen/Ollama or Kimi/UmansAI via OpenAiCompat), else DeterministicBuilder. trip view renders ⭐ + the why text. Tested with ScriptedProvider (no live LLM): story-link attached, sourced "agent". just qa green (builder 3 tests). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>