Skip to content

Add LangGraph migration examples (Python and TypeScript) - #306

Open
dpatlut wants to merge 1 commit into
strands-agents:mainfrom
dpatlut:docs/langgraph-migration-examples
Open

dpatlut wants to merge 1 commit into
strands-agents:mainfrom
dpatlut:docs/langgraph-migration-examples

Conversation

@dpatlut

@dpatlut dpatlut commented Sep 23, 2026 •

Copy link
Copy Markdown

Runnable companions to the Migrate from LangGraph guide (docs PR: strands-agents/harness-sdk#4536).

New folders:

  • python/migration/langgraph/: langgraph_before.py, strands_after.py, requirements.txt
  • typescript/migration/langgraph/: langgraph-before/ and strands-after/, each a small npm project

Each pair solves the same three-stage case triage with the same two tools and the same public function, run_case(case_id, prompt) / runCase(caseId, prompt), so the LangGraph and Strands versions can be compared line by line. The case id is the persistence key in both: a thread_id for LangGraph's checkpointer, a session id for Strands.

Tested: all four programs run on Amazon Bedrock for both bundled cases, from a fresh venv / fresh npm install against the public registry, including a repeated call on the same case.

Needs Python 3.10+ / Node 22+ and AWS credentials with Bedrock access.

@github-actions

Copy link
Copy Markdown

Latest scan for commit: 1951ff6 | Updated: 2026-09-23 04:46:11 UTC

✅ Security Scan Report (PR Files Only)

Scanned Files

  • python/migration/langgraph/langgraph_before.py
  • python/migration/langgraph/requirements.txt
  • python/migration/langgraph/strands_after.py
  • typescript/migration/langgraph/langgraph-before/package.json
  • typescript/migration/langgraph/langgraph-before/src/index.ts
  • typescript/migration/langgraph/langgraph-before/tsconfig.json
  • typescript/migration/langgraph/strands-after/package.json
  • typescript/migration/langgraph/strands-after/src/index.ts
  • typescript/migration/langgraph/strands-after/tsconfig.json

Security Scan Results

Critical High Medium Low Info
0 0 0 0 0

Threshold: High

No security issues detected in your changes. Great job!

This scan only covers files changed in this PR.

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