Skip to content

Conversation

@nathannewyen
Copy link

Overview

Added complete Graph API implementation for both Python and JavaScript in the Orchestrator-worker section. The original code blocks only contained schema definitions without the actual workflow implementation.

Type of change

  • Fix typo/bug/link/formatting

Related issues/PRs

fixes #1722

Checklist

  • I have read the contributing guidelines
  • I have tested my changes locally using docs dev
  • All code examples have been tested and work correctly
  • I have used root relative paths for internal links
  • I have updated the navigation in src/docs.json if needed (N/A)

Changes

Added the following to both Python and JavaScript Graph API code blocks:

  • State and WorkerState definitions
  • Node functions (orchestrator, llmCall, synthesizer)
  • Conditional edge function (assignWorkers) using Send API
  • StateGraph workflow building
  • Compilation and invocation examples

Note

The CI check failure regarding src/oss/python/integrations/providers/overview.mdx is not related to this PR. This PR only modifies src/oss/langgraph/workflows-agents.mdx. The overview.mdx file appears to have drifted from what the generation script produces - this is a pre-existing issue in the main branch.

The Graph API code blocks in the Orchestrator-worker section were
incomplete, containing only schema definitions and planner setup
without the actual workflow implementation.

This commit adds the complete Graph API implementation for both
Python and JavaScript, including:
- State and WorkerState definitions
- Node functions (orchestrator, llmCall, synthesizer)
- Conditional edge function (assignWorkers) using Send API
- StateGraph workflow building
- Compilation and invocation examples

fixes langchain-ai#1722
@github-actions github-actions bot added langgraph For docs changes to LangGraph oss labels Dec 6, 2025
Run pipeline/tools/partner_pkg_table.py to sync the auto-generated
file with the current script output.
@nathannewyen nathannewyen requested a review from mdrxy as a code owner December 6, 2025 23:50
@github-actions github-actions bot added langchain For docs changes to LangChain python For content related to the Python version of LangChain projects labels Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

langchain For docs changes to LangChain langgraph For docs changes to LangGraph oss python For content related to the Python version of LangChain projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation Missing

2 participants