Use agentic contexts in the Bedrock agentic accelerator - #1898
Use agentic contexts in the Bedrock agentic accelerator#1898jborlase-snowplow wants to merge 3 commits into
Conversation
The accelerator wrapped `get_service_attributes` in a bespoke `get_signals` Strands tool, predating agentic contexts. Add the second data source as its own tool and frame the two as complements throughout: profile attributes are the computed aggregates the session adds up to, while the agentic context is what the user has just been doing, event by event. Notebook: - new `get_session_activity` tool calling `get_agentic_context(format="narrative")` - new cells defining and publishing an `EventLog` over `domain_sessionid`, capturing page_view, filter_tag_applied, and experience_filter - new cell reading the narrative back, and a query that exercises event order - system prompt and both agent constructions updated for five tools - tracker cell now pauses a second between events, so the buffer records a sequence instead of one simultaneous burst - cleanup cell fixed: an attribute group can't be unpublished while a service still references it, so the service must be deleted first Pages: agentic-context definition step, real captured narrative and attribute outputs replacing values that no longer matched a real run, and the attributes-vs-activity framing in the introduction, agent, memory, and conclusion steps. Terminology follows the Vercel AI SDK tutorial. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
documentation | 0c199a0 | Commit Preview URL Branch Preview URL |
Jul 31 2026, 03:50 PM |
Docs style reviewScope: writing quality, style guide compliance, terminology, structure, frontmatter, and links in the diff. Technical correctness not assessed. The prose is generally strong — the profile-attributes vs. session-activity contrast is explained clearly and consistently, the marketing word "seamlessly" was correctly dropped from 1.
|
| sp_signals.delete([session_attributes_group]) | ||
| ``` | ||
|
|
||
| :::note[Removing the agentic context] |
Remove the SDK unpublish workaround from the cleanup guidance and teach the plain removal sequence instead, drop the event-spacing and buffer observations from our own runs, and rephrase the sample narrative so it no longer refers to a test capture.
|
Pushed 🤖 Generated with Claude Code |
Split the oversized Configure Signals page: "Validate what Signals computes" moves to a new validate-signals.md at position 4, with downstream pages renumbered. Merging the service and publish steps brings the remaining page within the 3-5 H2 guidance. Featured the AI-assisted route: the Console-alternative panel is replaced with prose offering the Snowplow Assistant or an MCP-connected assistant, plus a copy/paste prompt that creates and publishes the agentic context. Trimmed to the owner's lens: dropped the Micro/"full pipeline" panel for a minimal prerequisite, converted the schema, model-choice, creation-time and demo-app panels to prose, removed the marketing close and the restatements of the attributes-vs-narrative contrast, and reframed the demo-app configuration check positively. Standardized on "profile attributes" in the keywords and Next steps, corrected "Profile API" to "Profiles API", and pointed the deletion link at its section anchor. Notebook markdown cells and both Signals tool docstrings reworded off "adds up to". Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Pushed 🤖 Generated with Claude Code |
What changed?
Retrofits
tutorials/signals-agentic-accelerator/(all six pages + the notebook, 31→36 cells): keepsget_signalsfor profile attributes and adds aget_session_activitytool callingget_agentic_context(format="narrative")for in-session activity, with the profile-vs-activity contrast in the intro (per product direction). Also fixes cleanup code in the shipped tutorial that never worked (a service must be deleted before its group can be unpublished).Why?
Completes the agentic-contexts adoption across the customer-facing agent tutorials (with the Vercel and ADK retrofits).
Reviewer guidance
page_view_count10, 15 buffered events in order). The agent-response cells couldn't be re-captured (no AWS credentials; none substituted) — pre-existing response examples left untouched, no invented outputs.snowplow-signals0.4.6, so no pin bump was needed.derived_tstamp(the notebook spaces its tracker calls to avoid a degenerate narrative),started_at_msisn't the earliest buffered event, and the narrative's summary line renders differently from the docs example.🤖 Generated with Claude Code