Repository navigation
feat(agentcontrol): add legacy-sdk-migrate skill for moving to the handler-based AI SDKs - #250
Open
tracisiebel wants to merge 6 commits into
Open
tracisiebel wants to merge 6 commits into
tracisiebel wants to merge 6 commits into
Conversation
…ndler-based AI SDKs Co-Authored-By: Traci Siebel <traci@launchdarkly.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Skill eval results
Only suites whose source actually changed since their last recorded score were re-run. Soft-failing while we stabilise the baseline. |
…cy-ai-sdk-migration Co-Authored-By: Ben Woskow <bwoskow@launchdarkly.com> # Conflicts: # CHANGELOG.md
…, and tool/template details Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
sattensil
marked this pull request as ready for review
November 9, 2026 19:05
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d7c0bf3. Configure here.
…ack re-raise, and judge track_data Co-authored-by: Cursor <cursoragent@cursor.com>
…, custom graph walks, and content capture Co-authored-by: Cursor <cursoragent@cursor.com>
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
Adds
agentcontrol/legacy-sdk-migrate, an agent skill version of Migrate from the legacy AI SDKs, so customers can have an agent move them fromlaunchdarkly-server-sdk-ai/@launchdarkly/server-sdk-aito the current handler-based SDKs.LDAIClient,initAi,completion_config,agent_config, trackers, judges, graphs), map each to a convenience function,config().invoke(), orgraph(), then confirm no legacy references remaininit_client(), tools andRegistry, streaming andhistory, async judges (skip_judges+run_judge()), graphs (graph(),resolve_graph()+ native runners)invoke()raises when the variation is disabled, so the skill portsenabled=Falsebranches to error handling andinspect_config()/inspectConfig()references/api-mapping.md: before/after code in Python and Node.jsskills.jsonTesting
python3 scripts/validate_skills.py,python3 -m unittest discover -s tests,python3 scripts/generate_catalog.py --check, and(cd evals && npm test)all pass. API and package names checked againstlaunchdarkly/python-ai-sdkandlaunchdarkly/js-ai-sdksource.Notes
Details
createOpenAIHandler,createOpenAIAgentHandler, andcreate_openai_agent_handler, which aren't exported. The SDKs exportcreateOpenAIMessagesHandler,createOpenAIAgentsHandler, andcreate_openai_agents_handler. The skill uses the exported names and warns agents about the mismatch. The docs page should be fixed separately.track_feedback/trackFeedbackequivalent, so the skill tells the agent to flag the gap to the user instead of deleting those calls.agentcontrol/migrate, which moves hardcoded prompts into AgentControl. Related open PRs fix(migrate): roll forward to the new AI SDK #218, fix(built-in-metrics): roll forward to the new AI SDK #219, and fix(tools): roll forward to the new AI SDK #221 update other skills to the new SDK and don't overlap with this one..claude-plugin/plugin.jsonlist, matchingmigrate. Codex and Cursor pick it up from the directory.Link to Devin session: https://app.devin.ai/sessions/d950e07d53954b9880874f06e845ac40
Open in Devin Desktop: https://app.devin.ai/desktop/session/d950e07d53954b9880874f06e845ac40?variant=devin
Requested by: @tracisiebel
Note
Overview
Introduces
agentcontrol/legacy-sdk-migrate(0.1.0), an agent skill that walks through upgrading apps from the legacy Python/Node AI SDKs (ldai,@launchdarkly/server-sdk-ai) to the handler-based SDKs via Explore → Assess → Execute → Verify.The skill and
references/api-mapping.mdspell out package swaps,config().invoke()/ convenience functions /graph(), registries and tools, streaming/history, replacing trackers with automatic metrics,inspect_configfallbacks instead ofenabled=False, background judges with explicittrack(), and graph telemetry/key changes. README andskills.jsonregister the skill;agentcontrol/migrateis clarified as for hardcoded prompts (not legacy SDK upgrades).tests/test_legacy_sdk_migrate.pylocks in judge-tracking guidance in the docs.Reviewed by Cursor Bugbot for commit 784614a. Bugbot is set up for automated code reviews on this repo. Configure here.