Skip to content

chore: fix langgraph quickstart - #2341

Merged
ranst91 merged 3 commits into
mainfrom
chore/fix-starter-dependencies-lg
Aug 19, 2025
Merged

ranst91 merged 3 commits into
mainfrom
chore/fix-starter-dependencies-lg

Conversation

@ranst91

@ranst91 ranst91 commented Aug 19, 2025 •

Copy link
Copy Markdown
Contributor

Missing dependencies and lacking instructions makes our quickstart for langgraph fail for users.
This PR attempts a fix at that

Summary by CodeRabbit

  • Documentation

    • Quickstart: Added a Python instruction to install the package in editable mode (pip install -e .) in the “Bring your own LangGraph agent” section.
  • Chores

    • Python example: Upgraded CopilotKit, langgraph, langsmith; added langchain-openai; relaxed upper bounds for several deps; added authors metadata and updated requirements.
    • UI example: Pinned CopilotKit-related packages to 1.10.2 for reproducible installs.
    • Demo app: Switched FastAPI integration to use the LangGraph GUI agent endpoint.

@vercel

vercel Bot commented Aug 19, 2025 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Preview Comments Updated (UTC)
docs Ready Ready Preview Comment Aug 19, 2025 3:24pm
examples-coagents-ai-travel-app Ready Ready Preview Comment Aug 19, 2025 3:24pm
examples-coagents-research-canvas-ui Ready Ready Preview Comment Aug 19, 2025 3:24pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
examples-coagents-ai-researcher-ui Ignored Ignored Aug 19, 2025 3:24pm

@coderabbitai

coderabbitai Bot commented Aug 19, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Adds an editable-install note to the LangGraph quickstart docs, updates example Python project dependencies (version bumps, loosened pins, added langchain-openai), pins example UI CopilotKit packages to 1.10.2, and rewires the example FastAPI demo to use LangGraphAGUIAgent with add_langgraph_fastapi_endpoint.

Changes

Cohort / File(s) Change summary
Docs Quickstart
docs/content/docs/langgraph/quickstart.mdx
Added a Python “Code along” instruction: run pip install -e . after poetry install (editable install note and code block).
Agent dependencies
examples/coagents-starter/agent-py/pyproject.toml, examples/coagents-starter/agent-py/requirements.txt
Updated dependency versions: bumped copilotkit, langgraph, langsmith; added langchain-openai dependency; loosened upper bounds for openai, fastapi, uvicorn, python-dotenv; added authors metadata in Poetry.
UI package versions
examples/coagents-starter/ui/package.json
Replaced "latest" pins for four @copilotkit packages with fixed version "1.10.2".
Demo FastAPI endpoint
examples/coagents-starter/agent-py/sample_agent/demo.py
Replaced CopilotKit remote endpoint wiring with LangGraph AGUI wiring: now constructs LangGraphAGUIAgent and registers it via add_langgraph_fastapi_endpoint(app, agent, path); removed prior CopilotKitRemoteEndpoint and add_fastapi_endpoint usage.

Sequence Diagram(s)

sequenceDiagram
    participant DevApp as FastAPI app
    participant Registrar as add_langgraph_fastapi_endpoint
    participant Agent as LangGraphAGUIAgent
    participant AGUI as LangGraph AG-UI

    rect rgba(200,230,255,0.4)
    DevApp->>Registrar: register(agent, path="/")
    Registrar->>Agent: attach endpoint handlers
    end

    rect rgba(220,255,220,0.4)
    DevApp->>Agent: HTTP request (user interacts)
    Agent->>AGUI: stream/dispatch events
    AGUI-->>Agent: responses/events
    Agent-->>DevApp: HTTP response
    end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • mme
  • suhasdeshpande
  • ataibarkai
  • tylerslaton

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/fix-starter-dependencies-lg

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (2)
examples/coagents-starter/agent-py/pyproject.toml (1)

28-32: Align LangChain and langchain-openai versions in pyproject.toml

Langchain-openai 0.3.30 doesn’t explicitly require langchain ≥0.3.30, but the two packages are tightly coupled and minor-version mismatches can lead to subtle runtime errors. For maximum stability:

• File: examples/coagents-starter/agent-py/pyproject.toml (lines 28–32, 36)
– Update
diff - langchain = "0.3.21" + langchain = "0.3.30"
– Ensure your langchain-openai entry (if present) also reads:
toml langchain-openai = "0.3.30"
• If upgrading langchain isn’t feasible, pin langchain-openai back to 0.3.21 to match core.
• In either scenario, add or extend end-to-end tests around the LangChain ↔ OpenAI integration to catch any compatibility issues.

examples/coagents-starter/agent-py/requirements.txt (1)

4-12: Keep this file auto-synced from Poetry to avoid version skew.

This matches the current intent, but manual updates drift over time—especially with dual version sources in pyproject.toml.

Export from Poetry instead of hand-maintaining:

  • Command: poetry export -f requirements.txt --without-hashes -o examples/coagents-starter/agent-py/requirements.txt
  • Consider wiring a CI check to fail if export diff is non-empty.

Optional: consider retaining upper bounds for servers (e.g., uvicorn, fastapi) to avoid unplanned breaking changes in a starter.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 5b52791 and 0c68de6.

⛔ Files ignored due to path filters (2)
  • examples/coagents-starter/agent-py/poetry.lock is excluded by !**/*.lock
  • examples/coagents-starter/ui/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (4)
  • docs/content/docs/langgraph/quickstart.mdx (1 hunks)
  • examples/coagents-starter/agent-py/pyproject.toml (2 hunks)
  • examples/coagents-starter/agent-py/requirements.txt (1 hunks)
  • examples/coagents-starter/ui/package.json (1 hunks)
🧰 Additional context used
📓 Path-based instructions (6)
examples/*/ui/**

📄 CodeRabbit Inference Engine (.cursor/rules/examples-and-demos.mdc)

Frontend applications in examples should be implemented as Next.js applications inside the 'ui/' directory.

Files:

  • examples/coagents-starter/ui/package.json
examples/coagents-starter/**/*

📄 CodeRabbit Inference Engine (.cursor/rules/quick-reference.mdc)

Check [coagents-starter/] for basic multi-agent system setup

Files:

  • examples/coagents-starter/ui/package.json
  • examples/coagents-starter/agent-py/requirements.txt
  • examples/coagents-starter/agent-py/pyproject.toml
docs/**/*

📄 CodeRabbit Inference Engine (.cursor/rules/quick-reference.mdc)

Check [docs/] for documentation site

Files:

  • docs/content/docs/langgraph/quickstart.mdx
docs/content/docs/**/*

📄 CodeRabbit Inference Engine (.cursor/rules/quick-reference.mdc)

See [docs/content/docs/] for markdown documentation files

Files:

  • docs/content/docs/langgraph/quickstart.mdx
examples/*/{agent,agent-py}/**

📄 CodeRabbit Inference Engine (.cursor/rules/examples-and-demos.mdc)

Backend agent implementations should be placed in 'agent/' (for JavaScript/TypeScript) or 'agent-py/' (for Python) directories within each example project.

Files:

  • examples/coagents-starter/agent-py/requirements.txt
  • examples/coagents-starter/agent-py/pyproject.toml
examples/coagents-starter/agent-py/**/*

📄 CodeRabbit Inference Engine (.cursor/rules/quick-reference.mdc)

Check [coagents-starter/agent-py/] for Python agent example

Files:

  • examples/coagents-starter/agent-py/requirements.txt
  • examples/coagents-starter/agent-py/pyproject.toml
🧠 Learnings (11)
📚 Learning: 2025-07-04T14:02:44.814Z
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/package.json : Review [CopilotKit/package.json] for workspace setup

Applied to files:

  • examples/coagents-starter/ui/package.json
📚 Learning: 2025-07-04T14:02:44.814Z
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/package.json : Use [CopilotKit/package.json] for workspace setup

Applied to files:

  • examples/coagents-starter/ui/package.json
📚 Learning: 2025-07-18T15:02:56.788Z
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/agent-development.mdc:0-0
Timestamp: 2025-07-18T15:02:56.788Z
Learning: Applies to **/agent-js/package.json : Install 'copilotkit/sdk-js' package for JavaScript agents.

Applied to files:

  • examples/coagents-starter/ui/package.json
📚 Learning: 2025-07-18T15:03:09.674Z
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-18T15:03:09.674Z
Learning: Applies to CopilotKit/package.json : Workspace configuration should be managed in CopilotKit/package.json

Applied to files:

  • examples/coagents-starter/ui/package.json
📚 Learning: 2025-07-04T14:02:44.814Z
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/packages/react-core/**/* : Use [react-core/] for basic integration when building a simple Copilot

Applied to files:

  • examples/coagents-starter/ui/package.json
📚 Learning: 2025-07-04T14:02:44.814Z
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/packages/react-ui/**/* : Add [react-ui/] for pre-built components when building a simple Copilot or customizing UI components

Applied to files:

  • examples/coagents-starter/ui/package.json
📚 Learning: 2025-07-18T15:03:09.673Z
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-18T15:03:09.673Z
Learning: Applies to CopilotKit/packages/react-core/** : Core React components and hooks for CopilotKit should be placed in CopilotKit/packages/react-core/

Applied to files:

  • examples/coagents-starter/ui/package.json
📚 Learning: 2025-07-18T15:03:09.673Z
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-18T15:03:09.673Z
Learning: Applies to CopilotKit/packages/react-ui/** : UI components for copilot interfaces should be placed in CopilotKit/packages/react-ui/

Applied to files:

  • examples/coagents-starter/ui/package.json
📚 Learning: 2025-07-18T15:02:56.788Z
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/agent-development.mdc:0-0
Timestamp: 2025-07-18T15:02:56.788Z
Learning: Applies to **/{agent,agent-py}/**/*.py : Import from the 'copilotkit' package in Python agent code.

Applied to files:

  • examples/coagents-starter/agent-py/requirements.txt
  • examples/coagents-starter/agent-py/pyproject.toml
📚 Learning: 2025-07-04T14:02:44.814Z
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to sdk-python/copilotkit/agent.py : Check [copilotkit/agent.py] for main agent class when developing Python agents

Applied to files:

  • examples/coagents-starter/agent-py/pyproject.toml
📚 Learning: 2025-07-18T15:02:56.788Z
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/agent-development.mdc:0-0
Timestamp: 2025-07-18T15:02:56.788Z
Learning: Applies to **/pyproject-template.toml : Configure pyproject-template.toml for Python agent projects.

Applied to files:

  • examples/coagents-starter/agent-py/pyproject.toml
🔇 Additional comments (1)
examples/coagents-starter/ui/package.json (1)

12-15: CopilotKit v1.10.2 is compatible with React 19; Next.js 15 support is implied but not yet officially declared
Peer dependencies across @copilotkit/react-core, @copilotkit/react-ui, @copilotkit/runtime, and @copilotkit/runtime-client-gql v1.10.2 include react ^18 || ^19, so React 19.0.0 installs cleanly. There’s no explicit “Next.js 15” claim in the release notes, but no breaking issues have been reported. If you encounter peer-dependency warnings during npm install, using --legacy-peer-deps will bypass them. Locking these versions in examples/coagents-starter/ui/package.json (lines 12–15) is safe.

Comment on lines +177 to +180
When using the langgraph CLI, since it uses the system python environment, you also need to run
```bash
pip install -e .
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Clarify the editable install to avoid environment confusion.

The note is helpful, but people may still install into the wrong interpreter. Recommend specifying the interpreter and offering the Poetry-driven alternative.

Apply this diff to clarify:

-When using the langgraph CLI, since it uses the system python environment, you also need to run
-```bash
-pip install -e .
-```
+When using the `langgraph` CLI outside of Poetry, ensure your agent package is available to the interpreter that runs `langgraph`:
+```bash
+python3 -m pip install -e .
+```
+Alternatively, run the CLI inside Poetry so environments stay consistent:
+```bash
+poetry run langgraph dev
+```
🤖 Prompt for AI Agents
In docs/content/docs/langgraph/quickstart.mdx around lines 177 to 180, the
editable install note is ambiguous about which Python interpreter is used;
change the wording to instruct users to install into the interpreter that will
run the langgraph CLI by using python3 -m pip install -e . when running the CLI
outside of Poetry, and also add an alternative recommending running the CLI
inside Poetry (poetry run langgraph dev) so environments remain consistent.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the cli cannot run inside of poetry with poetry run...

Comment on lines +1 to +6
[project]
name = "agent"
version = "0.1.0"
description = ""
requires-python = ">=3.10"
dependencies = [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Python version mismatch between sections will cause setup inconsistencies.

[project] allows 3.13+, but [tool.poetry.dependencies] restricts to <3.13. Users on 3.13 will succeed with pip but fail with poetry.

Align the constraints. Suggested fix:

-[project]
-name = "agent"
-version = "0.1.0"
-description = ""
-requires-python = ">=3.10"
+[project]
+name = "agent"
+version = "0.1.0"
+description = ""
+requires-python = ">=3.10,<3.13"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
[project]
name = "agent"
version = "0.1.0"
description = ""
requires-python = ">=3.10"
dependencies = [
[project]
name = "agent"
version = "0.1.0"
description = ""
requires-python = ">=3.10,<3.13"
dependencies = [
🤖 Prompt for AI Agents
In examples/coagents-starter/agent-py/pyproject.toml around lines 1 to 6, the
[project] requires-python value allows Python 3.13+ while
[tool.poetry.dependencies] restricts Python to <3.13 causing mismatch; update
the file so both sections use the same constraint (e.g., change [project]
requires-python to ">=3.10,<3.13" or relax the poetry constraint to ">=3.10" /
">=3.10,<4.0" depending on supported versions) and ensure both the top-level
requires-python and the poetry dependencies section match exactly.

Comment on lines +6 to +16
dependencies = [
"copilotkit==0.1.60",
"langchain==0.3.21",
"langgraph>=0.6.5",
"langsmith>=0.3.45",
"openai>=1.68.2",
"fastapi>=0.115.5",
"uvicorn>=0.29.0",
"python-dotenv>=1.0.0",
"langchain-openai>=0.3.30"
]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Duplicate dependency sources create drift between pip and Poetry installs.

Dependencies are declared in both [project].dependencies and [tool.poetry.dependencies] with different version specs (e.g., langgraph >=0.6.5 vs 0.6.5). With poetry-core as backend, pip install -e . uses Poetry metadata; the [project] deps aren’t needed and increase maintenance risk.

Simplest path: remove [project].dependencies and keep a single source of truth under [tool.poetry.dependencies].

 [project]
 name = "agent"
 version = "0.1.0"
 description = ""
 requires-python = ">=3.10,<3.13"
-dependencies = [
-    "copilotkit==0.1.60",
-    "langchain==0.3.21",
-    "langgraph>=0.6.5",
-    "langsmith>=0.3.45",
-    "openai>=1.68.2",
-    "fastapi>=0.115.5",
-    "uvicorn>=0.29.0",
-    "python-dotenv>=1.0.0",
-    "langchain-openai>=0.3.30"
-]

If you keep both, ensure all specs match exactly to avoid conflicting resolution.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
dependencies = [
"copilotkit==0.1.60",
"langchain==0.3.21",
"langgraph>=0.6.5",
"langsmith>=0.3.45",
"openai>=1.68.2",
"fastapi>=0.115.5",
"uvicorn>=0.29.0",
"python-dotenv>=1.0.0",
"langchain-openai>=0.3.30"
]
[project]
name = "agent"
version = "0.1.0"
description = ""
requires-python = ">=3.10,<3.13"
🤖 Prompt for AI Agents
In examples/coagents-starter/agent-py/pyproject.toml around lines 6 to 16, there
are duplicate dependency declarations under [project].dependencies that conflict
with [tool.poetry.dependencies]; remove the entire [project].dependencies
section so Poetry (poetry-core backend) remains the single source of truth, or
alternatively make both blocks identical if you must keep both, ensuring exact
matching version specs to avoid resolution drift between pip and Poetry
installs.

@changesets-bot-copilotkit

Copy link
Copy Markdown

⏭️ Changeset Not Required

Latest commit: 9db98e8

No changes in this PR affected the @copilitkit/* packages. Merging this PR will not cause a version bump for any packages.

Changeset is not required for this PR.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
examples/coagents-starter/agent-py/sample_agent/demo.py (1)

18-26: Consider mounting the agent under a subpath instead of “/”

Mounting at root can shadow other routes and sometimes conflicts with docs or health endpoints. Using a dedicated base path (e.g., “/agent” or “/langgraph”) tends to be safer for examples and aligns better with typical UI expectations.

Apply this minimal change:

-    path="/",
+    path="/agent",

If the UI is served from a different origin, you may also need CORS. Add this near app creation (outside the selected lines):

from fastapi.middleware.cors import CORSMiddleware

app.add_middleware(
    CORSMiddleware,
    allow_origins=["http://localhost:3000"],  # adjust to your UI origin(s)
    allow_credentials=True,
    allow_methods=["*"],
    allow_headers=["*"],
)
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 0c68de6 and 9db98e8.

📒 Files selected for processing (1)
  • examples/coagents-starter/agent-py/sample_agent/demo.py (1 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
**/{agent,agent-py}/**/*.py

📄 CodeRabbit Inference Engine (.cursor/rules/agent-development.mdc)

**/{agent,agent-py}/**/*.py: Python agents should be placed in folders named 'agent-py/' or 'agent/' and use the sdk-python package.
Import from the 'copilotkit' package in Python agent code.
Define actions and agent logic in Python agent code.

Files:

  • examples/coagents-starter/agent-py/sample_agent/demo.py
examples/*/{agent,agent-py}/**

📄 CodeRabbit Inference Engine (.cursor/rules/examples-and-demos.mdc)

Backend agent implementations should be placed in 'agent/' (for JavaScript/TypeScript) or 'agent-py/' (for Python) directories within each example project.

Files:

  • examples/coagents-starter/agent-py/sample_agent/demo.py
examples/coagents-starter/**/*

📄 CodeRabbit Inference Engine (.cursor/rules/quick-reference.mdc)

Check [coagents-starter/] for basic multi-agent system setup

Files:

  • examples/coagents-starter/agent-py/sample_agent/demo.py
examples/coagents-starter/agent-py/**/*

📄 CodeRabbit Inference Engine (.cursor/rules/quick-reference.mdc)

Check [coagents-starter/agent-py/] for Python agent example

Files:

  • examples/coagents-starter/agent-py/sample_agent/demo.py
🧬 Code Graph Analysis (1)
examples/coagents-starter/agent-py/sample_agent/demo.py (1)
sdk-python/copilotkit/langgraph_agui_agent.py (1)
  • LangGraphAGUIAgent (46-181)
🔇 Additional comments (3)
examples/coagents-starter/agent-py/sample_agent/demo.py (3)

13-26: LGTM: Refactor aligns with the new LangGraph AGUI integration

Switching to LangGraphAGUIAgent and add_langgraph_fastapi_endpoint simplifies the setup and matches the updated quickstart. Nice cleanup.


13-14: Manual verification required: validate external API exports

The example imports reference symbols that weren’t found in this repo. Before running the demo, please ensure:

  • add_langgraph_fastapi_endpoint is defined and exported by the ag_ui_langgraph package (or update the import to its actual submodule path).
  • LangGraphAGUIAgent is re-exported at the top level of copilotkit (or adjust the import to point to its real location).

Files to check:
• examples/coagents-starter/agent-py/sample_agent/demo.py (lines 13–14)


20-24: Confirmed graph Is Already Compiled

sample_agent/agent.py invokes workflow.compile() (lines 122 and 127), so the graph passed into LangGraphAGUIAgent is already a compiled LangGraph. No changes needed here.

@github-actions

github-actions Bot commented Aug 19, 2025 •

Copy link
Copy Markdown
Contributor

Preview environments destroyed for this pull request.

@github-actions

github-actions Bot commented Aug 19, 2025 •

Copy link
Copy Markdown
Contributor

Test Results

Status: ❌ Failed (View Run)

Commit: 31ca17f

Duration: 990.5s

Total Tests: 37

Pass Rate: 35.1%

Failed Tests: 24

❌ Failed Tests

🔍 Detailed Results

coagents-research-canvas

CoAgents Research Canvas (UI) - Local Depenencies

Model Browser Status Video
OpenAI chromium ✅ PASSED -
Anthropic chromium ✅ PASSED -
CrewAI chromium ✅ PASSED -

coagents-qa-native

CoAgents QA Native (UI) - Local

Model Browser Status Video
OpenAI chromium ✅ PASSED -
Anthropic chromium ✅ PASSED -

coagents-qa-text

CoAgents QA Text (UI) - Local

Model Browser Status Video
OpenAI chromium ✅ PASSED -
Anthropic chromium ✅ PASSED -
OpenAI (LGC Python) chromium ✅ PASSED -
Anthropic (LGC Python) chromium ✅ PASSED -
OpenAI (LGC JS) chromium ✅ PASSED -
Anthropic (LGC JS) chromium ✅ PASSED -

coagents-routing

CoAgents Routing (UI) - Local

Model Browser Status Video
OpenAI chromium ✅ PASSED -
Anthropic chromium ✅ PASSED -

next-openai

Next OpenAI - Self Hosted

Model Browser Status Video
OpenAI chromium ❌ FAILED Video, Video, Video, Video, Video, Video
Anthropic chromium ❌ FAILED Video, Video, Video, Video, Video, Video
LangChain (OpenAI) chromium ❌ FAILED Video, Video, Video, Video, Video, Video
Groq chromium ❌ FAILED Video, Video, Video, Video, Video, Video

This branch was successfully deployed

3 active deployments
Preview – docs — 9db98e8d Deployed Aug 19, 2025 by vercel[bot]
Preview – examples-coagents-research-canvas-ui — 9db98e8d Deployed Aug 19, 2025 by vercel[bot]
Preview – examples-coagents-ai-travel-app — 9db98e8d Deployed Aug 19, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant