Sync tutorial docs with published versions#25
Merged
Conversation
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.
This reverts commit 93f2461.
Dead import left over from the SDK 0.20 roll-forward; the new agent_config() API path does not use it.
# Conflicts: # config_manager.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
agents-langgraph.mdx,multi-agent-mcp-targeting.mdx,ai-experiments-roi.mdxin ld-docs-private)screenshots/directoryhttps://launchdarkly.com/docs/...and point Part 1/2/3 cross-refs at local files so everything renders on GitHubTest plan
screenshots/launchdarkly.com/docsREADME.md/tutorial_2.md/tutorial_3.md