Skip to content

docs: standardize assistantId on 'chat' to match shipped example#584

Merged
blove merged 2 commits into
mainfrom
claude/fix-assistantid-consistency
Jun 6, 2026
Merged

docs: standardize assistantId on 'chat' to match shipped example#584
blove merged 2 commits into
mainfrom
claude/fix-assistantid-consistency

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented Jun 6, 2026

Summary

The docs drifted between two values for the LangGraph/chat assistant ID:

  • 'chat' — used by the shipped example (examples/chat/python/langgraph.json registers graph key "chat"), the 3 TypeScript examples, and the langgraph getting-started introduction page.
  • 'chat_agent' — used across langgraph guides/concepts, the chat component docs, the chat getting-started pages, and the api reference.

Both referred to the same generic default agent, so a reader copying a snippet from one page and pairing it with the example backend would hit an assistantId mismatch. This standardizes everything on 'chat'.

Changes (25 swaps, prose/code-example only)

  • All assistantId: 'chat_agent'assistantId: 'chat' across docs .mdx.
  • Self-contained langgraph.json graph keys in deployment.mdx ("chat_agent""chat") so each page stays internally consistent.
  • The quickstart comment now reads // 'chat' maps to the key in your langgraph.json "graphs" config.
  • The JSDoc example in libs/langgraph/src/lib/agent.fn.ts updated to match (source-of-truth example developers copy).

Intentionally left untouched

  • Distinct illustrative IDs that demonstrate different agents: orchestrator, memory_agent, support_agent, copilot_agent, research_agent, etc.
  • The static published whitepaper apps/website/public/whitepapers/angular-preview.html (point-in-time artifact, not living docs).

Test Plan

  • chat_agent no longer present in apps/website/content/docs/ or libs/langgraph/src/lib/agent.fn.ts.
  • Diff is exactly 25 chat_agentchat swaps, no collateral changes (no headings/anchors/other API names touched).
  • eslint libs/langgraph/src/lib/agent.fn.ts exits 0.

🤖 Generated with Claude Code

The docs drifted between 'chat' (used in examples/chat/python/langgraph.json
and the langgraph introduction page) and 'chat_agent' (used across guides,
concepts, component, and api docs). All referred to the same generic default
agent. Standardize on 'chat' so copy-pasted snippets work against the shipped
example backend. Self-contained langgraph.json graph keys and the agent.fn.ts
JSDoc example updated to match. Intentionally-distinct illustrative IDs
(orchestrator, memory_agent, support_agent, etc.) left untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview, Comment Jun 6, 2026 5:02am

Request Review

@blove blove merged commit ea2b6e8 into main Jun 6, 2026
18 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