Skip to content

chore: use agui with research canvas tests - #2018

Merged
ranst91 merged 7 commits into
mainfrom
chore/agui-research-canvas
Jun 23, 2025
Merged

ranst91 merged 7 commits into
mainfrom
chore/agui-research-canvas

Conversation

@ranst91

@ranst91 ranst91 commented Jun 19, 2025 •

Copy link
Copy Markdown
Contributor

Replacing the current remote endpoint for langgraph platform with the new AGUI agent on research canvas demo

Summary by CodeRabbit

  • Chores

    • Updated @copilotkit dependencies to version 1.9.2-next.7.
  • Bug Fixes

    • Improved agent initialization for remote endpoints, supporting multiple named agents for better deployment flexibility.
    • Refined interrupt handling to ensure more accurate and isolated processing during concurrent operations.

@vercel

vercel Bot commented Jun 19, 2025 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
copilotkit-feature-viewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 11:06am
demo-viewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 11:06am
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 11:06am
examples-coagents-ai-travel-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 11:06am
examples-coagents-research-canvas-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 11:06am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
examples-coagents-ai-researcher-ui ⬜️ Ignored (Inspect) Visit Preview Jun 23, 2025 11:06am

@coderabbitai

coderabbitai Bot commented Jun 19, 2025 •

Copy link
Copy Markdown
Contributor
## Walkthrough

The changes update three `@copilotkit` dependencies to version 1.9.2-next.7 in the UI package. In the API route handler, the initialization of `CopilotRuntime` is revised to support multiple named agents using `LangGraphAgent` instances, replacing the previous single-endpoint approach and removing the use of `langGraphPlatformEndpoint`. Additionally, interrupt handling in the runtime is refactored to remove a global flag, using thread-local interrupt state and a new helper function to emit interrupts more reliably.

## Changes

| File(s)                                                                                  | Change Summary                                                                                                   |
|------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|
| examples/coagents-research-canvas/ui/package.json                                        | Updated `@copilotkit/react-core`, `@copilotkit/react-ui`, and `@copilotkit/runtime` dependencies to version 1.9.2-next.7. |
| examples/coagents-research-canvas/ui/src/app/api/copilotkit/route.ts                     | Changed `CopilotRuntime` initialization to support multiple named agents via `LangGraphAgent`; removed old endpoint logic. |
| CopilotKit/.changeset/ninety-items-scream.md                                            | Added patch update fixing interrupt handling by using active interrupt from current thread context instead of global variable. |
| CopilotKit/packages/runtime/src/lib/runtime/remote-lg-action.ts                          | Refactored interrupt handling in `streamEvents`: removed global interrupt flag, introduced `emitInterrupt` helper, improved interrupt resolution and emission logic. |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant Client
    participant API_Route
    participant CopilotRuntime
    participant LangGraphAgent

    Client->>API_Route: POST request
    API_Route->>CopilotRuntime: Initialize with copilotKitEndpoint
    alt deploymentUrl set and not isCrewAi
        API_Route->>LangGraphAgent: Instantiate research_agent (graphId: research_agent)
        API_Route->>LangGraphAgent: Instantiate research_agent_google_genai (graphId: research_agent_google_genai)
        API_Route->>CopilotRuntime: Re-initialize with agents {research_agent, research_agent_google_genai}
    end
    API_Route->>CopilotRuntime: Handle request via copilotRuntimeNextJSAppRouterEndpoint
    CopilotRuntime-->>API_Route: Response
    API_Route-->>Client: Response

Possibly related PRs

Suggested reviewers

  • mme
  • suhasdeshpande

<!-- walkthrough_end -->


---

<details>
<summary>📜 Recent review details</summary>

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


<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 33bc518a6ece5f1ae032dfd4095086beea65ec11 and 20565f876095259e0b6bf1b4e40b32571ca5c072.

</details>

<details>
<summary>⛔ Files ignored due to path filters (1)</summary>

* `examples/coagents-research-canvas/ui/pnpm-lock.yaml` is excluded by `!**/pnpm-lock.yaml`

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `examples/coagents-research-canvas/ui/package.json` (1 hunks)

</details>

<details>
<summary>🚧 Files skipped from review as they are similar to previous changes (1)</summary>

* examples/coagents-research-canvas/ui/package.json

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (2)</summary>

* GitHub Check: Test (18.x)
* GitHub Check: Test (20.x)

</details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNwSPbABsvkCiQBHbGlcSHFcLzpIACIGWHx/LmxEDzQibB0Ad3VYP2kSZzjGTAk0ZBpEXERoyEyy+2wBZnUaejkw2A9kyj9MSoBOAEZ0DHpUeCUMcQAzeCj6jEcBHoAmAAZBgA4NGE7GWExSFAwJfC8pZH9uLzQGeAwiDo8GbAp/KbzmfBpIMlpufD3ULTBJPSAAGUOAHEqNxctdqCCKMxajkweRMpAAIJQgCqAEl0KQPohuKJ4LMGGgfPJsrgEFh6R5/ClCrkqSd6kovjs4KhsNxaNRUvBmOV8McaEQqD8mdi8YS0uxJRK5SyChQihzSuUQogADQNASVdR4e6POW8EgSeD4ZKfb4eP4AoGQbr0JFgyEPGFoOE8G64JHMXl7bjeXz+IIhYpYZZ5G0kTLzUJy3E2cFcWC4XDcRAcAD0BaIOUaGiYzALAGF8Nx4F5vgBpdTV2v1pst8M+AvrLYaIz6YzgKB/fjTHAEYhkZStBSsdhcXj8YSicQXSDtJhKKiqdRaHSDkxQPnIVCYCeEYkzqIVthTLhUTEOJwuDfyLfKXeabS6MCGIemAYJAAB5oMw1zSAWTBKlMiBgOqbJgNqZQFhkBbcLcADWSoaEIiD4BgHAGNEJEGBY2L4lO5AylEz7MM48j4OOcSHNIbh7FIFCILaGDIExYL0v4HgAAYAAJMHWDa4Jh6jCZAShkqMZB3NIgAoBGJEnttJLb+LcuBIQkJDCYaG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ydMIMCsNMDTNMJFCQNyWgP0LQLQGlAKQKbQGsJsJFGsGgGsNqYMLQHKZsAwJqbQAIAKf0JFP0L+IYIif0IKdaUKdKZGf0CsLQAwAIGlKqZFHKUKSmSQP0GsNaR1jTP0CQEKdMKKSQGlMGSyRAJAJFJFAIAwEKVsGgHKaIHmfqWgGaZFLGdMOKWsP0CKZsHKcsAUGmQwIMMMLqWWesKmfmZsGlHKZ2UKSsEKbmWsPKQIPqX6SQAKYua2UKWlIMFSEKQwGsMqSWaWVAOSSklSTSdaHMMmLQJEqOPoEAA== -->

<!-- internal state end -->
<!-- tips_start -->

---

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.

<details>
<summary>❤️ Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=CopilotKit/CopilotKit&utm_content=2018):

> ‼️ **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. Examples:
  - `@coderabbitai explain this code block.`
  -	`@coderabbitai modularize this function.`
- 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 src/utils.ts and explain its main purpose.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### 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.

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->

@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-research-canvas/ui/src/app/api/copilotkit/route.ts (1)

22-46: Consider refactoring for efficiency and add error handling.

The current implementation creates a runtime instance twice when deploymentUrl is set and !isCrewAi. While functionally correct, this is inefficient as the first runtime is discarded.

Consider refactoring to avoid creating unnecessary runtime instances:

-  let runtime = new CopilotRuntime({
-    remoteEndpoints: [
-      copilotKitEndpoint({
-        url:
-            process.env.REMOTE_ACTION_URL || "http://localhost:8000/copilotkit",
-      })
-    ],
-  })
-
-  if (deploymentUrl && !isCrewAi) {
-    runtime = new CopilotRuntime({
-      agents: {
-        'research_agent': new LangGraphAgent({
-          deploymentUrl,
-          langsmithApiKey,
-          graphId: 'research_agent',
-        }),
-        'research_agent_google_genai': new LangGraphAgent({
-          deploymentUrl,
-          langsmithApiKey,
-          graphId: 'research_agent_google_genai',
-        })
-      }
-    })
-  }
+  let runtime: CopilotRuntime;
+  
+  if (deploymentUrl && !isCrewAi) {
+    try {
+      runtime = new CopilotRuntime({
+        agents: {
+          'research_agent': new LangGraphAgent({
+            deploymentUrl,
+            langsmithApiKey,
+            graphId: 'research_agent',
+          }),
+          'research_agent_google_genai': new LangGraphAgent({
+            deploymentUrl,
+            langsmithApiKey,
+            graphId: 'research_agent_google_genai',
+          })
+        }
+      });
+    } catch (error) {
+      console.error('Failed to create LangGraph agents:', error);
+      // Fallback to default runtime
+      runtime = new CopilotRuntime({
+        remoteEndpoints: [
+          copilotKitEndpoint({
+            url: process.env.REMOTE_ACTION_URL || "http://localhost:8000/copilotkit",
+          })
+        ],
+      });
+    }
+  } else {
+    runtime = new CopilotRuntime({
+      remoteEndpoints: [
+        copilotKitEndpoint({
+          url: process.env.REMOTE_ACTION_URL || "http://localhost:8000/copilotkit",
+        })
+      ],
+    });
+  }

This refactor:

  1. Avoids creating unnecessary runtime instances
  2. Adds error handling for agent creation failures
  3. Provides a fallback mechanism
  4. Makes the conditional logic more explicit
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 56cdec2 and 2c780ef.

⛔ Files ignored due to path filters (2)
  • CopilotKit/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • examples/coagents-research-canvas/ui/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (3)
  • CopilotKit/packages/runtime/package.json (1 hunks)
  • examples/coagents-research-canvas/ui/package.json (1 hunks)
  • examples/coagents-research-canvas/ui/src/app/api/copilotkit/route.ts (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Test (18.x)
  • GitHub Check: Test (20.x)
🔇 Additional comments (3)
CopilotKit/packages/runtime/package.json (1)

53-53: Verify the alpha version exists and assess stability implications.

The dependency was updated to an alpha version (0.0.4-alpha.0), which may introduce instability or breaking changes. Ensure this version is available and consider the implications of using an alpha release in production.

#!/bin/bash
# Check if the alpha version exists on npm
npm view @ag-ui/[email protected] version

# Check for recent versions and release notes
npm view @ag-ui/langgraph versions --json | jq '.[-5:]'
examples/coagents-research-canvas/ui/package.json (1)

12-14: Verify the updated package versions are available.

The three @CopilotKit packages were updated from 1.8.13 to 1.9.1. Ensure these versions exist and are compatible with the runtime changes.

#!/bin/bash
# Check if the updated versions exist on npm
npm view @copilotkit/[email protected] version
npm view @copilotkit/[email protected] version  
npm view @copilotkit/[email protected] version

# Check for any breaking changes in changelog between 1.8.13 and 1.9.1
npm view @copilotkit/runtime versions --json | jq '.[]' | grep -E "1\.[89]\."
examples/coagents-research-canvas/ui/src/app/api/copilotkit/route.ts (1)

6-6: LGTM!

The import of LangGraphAgent is correctly added to support the new agent-based runtime configuration.

@changesets-bot-copilotkit

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 74712a3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@copilotkit/runtime Patch
@copilotkit/runtime-client-gql Patch
@copilotkit/react-core Patch
@copilotkit/react-textarea Patch
@copilotkit/react-ui Patch
@copilotkit/sdk-js Patch
@copilotkit/shared Patch

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Jun 23, 2025 •

Copy link
Copy Markdown
Contributor

Preview environments destroyed for this pull request.

@github-actions

github-actions Bot commented Jun 23, 2025 •

Copy link
Copy Markdown
Contributor

Test Results

Status: ✅ Passed (View Run)

Commit: d4d077f

Duration: 239.1s

Total Tests: 20

Pass Rate: 100.0%

Failed Tests: 0

🔍 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 ✅ PASSED -
Anthropic chromium ✅ PASSED -
Google Generative AI chromium ✅ PASSED -
LangChain (OpenAI) chromium ✅ PASSED -
LangChain (Anthropic) chromium ✅ PASSED -
LangChain (Gemini) chromium ✅ PASSED -
Groq chromium ✅ PASSED -

This branch was successfully deployed

5 active deployments
Preview – docs — 74712a32 Deployed Jun 23, 2025 by vercel[bot]
Preview – examples-coagents-research-canvas-ui — 74712a32 Deployed Jun 23, 2025 by vercel[bot]
Preview – copilotkit-feature-viewer — 74712a32 Deployed Jun 23, 2025 by vercel[bot]
Preview – demo-viewer — 74712a32 Deployed Jun 23, 2025 by vercel[bot]
Preview – examples-coagents-ai-travel-app — 74712a32 Deployed Jun 23, 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.

2 participants