Skip to content

Sync tutorial docs with published versions#25

Merged
sattensil merged 8 commits into
mainfrom
docs-sync-tutorials
May 19, 2026
Merged

Sync tutorial docs with published versions#25
sattensil merged 8 commits into
mainfrom
docs-sync-tutorials

Conversation

@sattensil
Copy link
Copy Markdown
Collaborator

Summary

  • Mirror README.md, tutorial_2.md, tutorial_3.md from the published docs (agents-langgraph.mdx, multi-agent-mcp-targeting.mdx, ai-experiments-roi.mdx in ld-docs-private)
  • Rewrite image asset paths to the local screenshots/ directory
  • Absolute-ize internal doc links to https://launchdarkly.com/docs/... and point Part 1/2/3 cross-refs at local files so everything renders on GitHub
  • Branch also carries 2 previously-unpushed SDK roll-forward commits (launchdarkly-server-sdk-ai 0.20, model-name updates)

Test plan

  • Render README.md / tutorial_2.md / tutorial_3.md on GitHub and confirm images load from screenshots/
  • Spot-check that internal links resolve to launchdarkly.com/docs
  • Verify Part 1/2/3 cross-links point to local README.md / tutorial_2.md / tutorial_3.md

sattensil added 3 commits May 16, 2026 10:37
Apply SDK 0.20 API surface changes (mirrors PR #24):
- Import from ldai instead of ldai.client
- LDAIAgentConfig -> AIAgentConfigRequest, LDAIAgentDefaults -> AIAgentConfigDefault
- ai_client.agent(config, ctx) -> ai_client.agent_config(key, ctx, default=...)
- config.tracker (property) -> config.create_tracker() (factory)
- tracker.track_latency_ms() -> tracker.track_duration()
- Bump launchdarkly-server-sdk-ai to >=0.20.0

Also drop stale ld-aic-cicd entry from uv.lock dev deps (not in pyproject).
Bulk-replace deprecated model references with current Anthropic API names:
- claude-3-5-haiku-20241022 -> claude-haiku-4-5-20251001
- claude-3-haiku-20240307 -> claude-haiku-4-5-20251001
- claude-3-5-sonnet-20241022 -> claude-sonnet-4-6
- claude-3-7-sonnet-latest -> claude-sonnet-4-6
- claude-opus-4-20250514 -> claude-opus-4-7

Files affected: .ai_config_defaults.json, README.md, bootstrap manifests,
bootstrap scripts, traffic generators, cost calculator pricing table,
Bedrock inference profile mapping, segmentation tests.

Verified all three new model IDs return HTTP 200 against Anthropic API.
Note: Bedrock inference profile version-suffixed IDs (e.g. *-v1:0) may need
separate follow-up; this commit updates only the API-side model names.
Mirror agents-langgraph.mdx, multi-agent-mcp-targeting.mdx, and
ai-experiments-roi.mdx from ld-docs-private. Rewrite asset paths to
the local screenshots/ directory and absolute-ize internal doc links
to https://launchdarkly.com/docs/... so the files render correctly
on GitHub.
The published agents-langgraph.mdx is API-key-only and never documented
the Bedrock SSO path the repo code supports. Re-add the Option A/B
provider setup and Bedrock inference-profile guidance to the repo README
(docs mdx intentionally left unchanged), using current model IDs.
DIVERGENCE FROM TUTORIAL: The published Part 2 tutorial documents the
project key as 'multi-agent-chatbot' (and the README naming-requirements
box still says to use that name). This repo's working LaunchDarkly
project is 'agents-tut-1-langgraph', so the bootstrap manifest is
pointed there to make create_configs.py run against the real project.

Anyone following the tutorial verbatim should set this back to
'multi-agent-chatbot' (or their own project key). This is an
environment-specific override, not a tutorial content change.
Dead import left over from the SDK 0.20 roll-forward; the new
agent_config() API path does not use it.
@sattensil sattensil merged commit 16b94fe into main May 19, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant