Repository navigation
fix: remove agent discovery for agui agents - #2062
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
|
""" WalkthroughThe changes refactor agent discovery in the runtime by making Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant CopilotRuntime
participant Endpoints
participant AGUI
Client->>CopilotRuntime: getAllAgents(graphqlContext)
CopilotRuntime->>Endpoints: discoverAgentsFromEndpoints(graphqlContext) (async)
CopilotRuntime->>AGUI: discoverAgentsFromAgui() (sync)
CopilotRuntime-->>Client: return combined agent list
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page 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)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
CopilotKit/packages/runtime/src/lib/runtime/copilot-runtime.ts(2 hunks)
🧰 Additional context used
🪛 Biome (1.9.4)
CopilotKit/packages/runtime/src/lib/runtime/copilot-runtime.ts
[error] 890-890: Avoid the use of spread (...) syntax on accumulators.
Spread syntax should be avoided on accumulators (like those in .reduce) because it causes a time complexity of O(n^2).
Consider methods such as .splice or .push instead.
(lint/performance/noAccumulatingSpread)
⏰ Context from checks skipped due to timeout of 90000ms (11)
- GitHub Check: Build Images (coagents-qa-native, agent, python, local-deps)
- GitHub Check: Build Images (next-openai, next-openai)
- GitHub Check: Build Images (coagents-qa-text, agent, python, local-deps)
- GitHub Check: Build Images (coagents-routing, ui)
- GitHub Check: Build Images (coagents-qa-native, ui)
- GitHub Check: Build Images (coagents-qa-text, ui)
- GitHub Check: Build Images (coagents-research-canvas, ui)
- GitHub Check: Build Images (coagents-research-canvas, agent, python, local-deps)
- GitHub Check: Build Images (coagents-routing, agent, python, local-deps)
- GitHub Check: Test (18.x)
- GitHub Check: Test (20.x)
🔇 Additional comments (1)
CopilotKit/packages/runtime/src/lib/runtime/copilot-runtime.ts (1)
789-792: LGTM! Correctly adapted to synchronous agent discovery.The refactoring properly handles the synchronous nature of
discoverAgentsFromAgui()while maintaining the asynchronous call todiscoverAgentsFromEndpoints().
7286704 to
425a376
Compare
425a376 to
8471d50
Compare
aa9b2da to
59edfa2
Compare
🦋 Changeset detectedLatest commit: 59edfa2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Click here if you're a maintainer who wants to add another changeset to this PR |
|
Preview environments destroyed for this pull request. |
Test ResultsStatus: ✅ Passed (View Run) Commit: 1afbd11 Duration: 214.5s Total Tests: 20 Pass Rate: 100.0% Failed Tests: 0 🔍 Detailed Resultscoagents-research-canvasCoAgents Research Canvas (UI) - Local Depenencies
coagents-qa-nativeCoAgents QA Native (UI) - Local
coagents-qa-textCoAgents QA Text (UI) - Local
coagents-routingCoAgents Routing (UI) - Local
next-openaiNext OpenAI - Self Hosted
|
Agent discovery (prematurely contacting agents to make sure they exist) is a "remote endpoints" concept.
For AGUI agents, which should just allow through without it
Summary by CodeRabbit