@copilotkit/runtime 1.60.0 → 1.60.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
|
5
5
|
var require_package = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, module) => {
|
|
6
6
|
module.exports = {
|
|
7
7
|
"name": "@copilotkit/runtime",
|
|
8
|
-
"version": "1.60.
|
|
8
|
+
"version": "1.60.1",
|
|
9
9
|
"private": false,
|
|
10
10
|
"keywords": [
|
|
11
11
|
"ai",
|
|
@@ -78,9 +78,9 @@ var require_package = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, m
|
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@ag-ui/a2ui-middleware": "0.0.8",
|
|
81
|
-
"@ag-ui/client": "0.0.
|
|
82
|
-
"@ag-ui/core": "0.0.
|
|
83
|
-
"@ag-ui/encoder": "0.0.
|
|
81
|
+
"@ag-ui/client": "0.0.57",
|
|
82
|
+
"@ag-ui/core": "0.0.57",
|
|
83
|
+
"@ag-ui/encoder": "0.0.57",
|
|
84
84
|
"@ag-ui/langgraph": "0.0.41",
|
|
85
85
|
"@ag-ui/mcp-apps-middleware": "0.0.3",
|
|
86
86
|
"@ag-ui/mcp-middleware": "0.0.1",
|
package/dist/package.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { __commonJSMin } from "./_virtual/_rolldown/runtime.mjs";
|
|
|
5
5
|
var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
6
|
module.exports = {
|
|
7
7
|
"name": "@copilotkit/runtime",
|
|
8
|
-
"version": "1.60.
|
|
8
|
+
"version": "1.60.1",
|
|
9
9
|
"private": false,
|
|
10
10
|
"keywords": [
|
|
11
11
|
"ai",
|
|
@@ -78,9 +78,9 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@ag-ui/a2ui-middleware": "0.0.8",
|
|
81
|
-
"@ag-ui/client": "0.0.
|
|
82
|
-
"@ag-ui/core": "0.0.
|
|
83
|
-
"@ag-ui/encoder": "0.0.
|
|
81
|
+
"@ag-ui/client": "0.0.57",
|
|
82
|
+
"@ag-ui/core": "0.0.57",
|
|
83
|
+
"@ag-ui/encoder": "0.0.57",
|
|
84
84
|
"@ag-ui/langgraph": "0.0.41",
|
|
85
85
|
"@ag-ui/mcp-apps-middleware": "0.0.3",
|
|
86
86
|
"@ag-ui/mcp-middleware": "0.0.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkit/runtime",
|
|
3
|
-
"version": "1.60.
|
|
3
|
+
"version": "1.60.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@ag-ui/a2ui-middleware": "0.0.8",
|
|
69
|
-
"@ag-ui/client": "0.0.
|
|
70
|
-
"@ag-ui/core": "0.0.
|
|
71
|
-
"@ag-ui/encoder": "0.0.
|
|
69
|
+
"@ag-ui/client": "0.0.57",
|
|
70
|
+
"@ag-ui/core": "0.0.57",
|
|
71
|
+
"@ag-ui/encoder": "0.0.57",
|
|
72
72
|
"@ag-ui/langgraph": "0.0.41",
|
|
73
73
|
"@ag-ui/mcp-apps-middleware": "0.0.3",
|
|
74
74
|
"@ag-ui/mcp-middleware": "0.0.1",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"uuid": "^10.0.0",
|
|
106
106
|
"ws": "^8.18.0",
|
|
107
107
|
"zod": "^3.23.3",
|
|
108
|
-
"@copilotkit/shared": "1.60.
|
|
108
|
+
"@copilotkit/shared": "1.60.1"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
111
|
"@copilotkit/aimock": "latest",
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
Agno — wired via `@ag-ui/
|
|
1
|
+
Agno — wired via the generic `HttpAgent` from `@ag-ui/client`. Requires an `/agui` URL
|
|
2
|
+
suffix.
|
|
2
3
|
|
|
3
4
|
## Install
|
|
4
5
|
|
|
5
6
|
```bash
|
|
6
|
-
pnpm add @ag-ui/
|
|
7
|
+
pnpm add @ag-ui/client
|
|
7
8
|
```
|
|
8
9
|
|
|
9
10
|
## Minimal wire-up
|
|
@@ -13,11 +14,11 @@ import {
|
|
|
13
14
|
CopilotRuntime,
|
|
14
15
|
createCopilotRuntimeHandler,
|
|
15
16
|
} from "@copilotkit/runtime/v2";
|
|
16
|
-
import {
|
|
17
|
+
import { HttpAgent } from "@ag-ui/client";
|
|
17
18
|
|
|
18
19
|
const runtime = new CopilotRuntime({
|
|
19
20
|
agents: {
|
|
20
|
-
default: new
|
|
21
|
+
default: new HttpAgent({
|
|
21
22
|
url: process.env.AGNO_URL ?? "http://localhost:8000/agui",
|
|
22
23
|
}),
|
|
23
24
|
},
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
`CopilotRuntime` takes any `AbstractAgent` subclass. Every framework below ships a
|
|
4
4
|
ready-made subclass you construct and hand to `agents: { ... }`.
|
|
5
5
|
|
|
6
|
-
| Framework | Package
|
|
7
|
-
| ------------------------- |
|
|
8
|
-
| Mastra | `@ag-ui/mastra`
|
|
9
|
-
| LangGraph | `@
|
|
10
|
-
| CrewAI Crews | `@ag-ui/crewai`
|
|
11
|
-
| CrewAI Flows | `@ag-ui/client` (HttpAgent)
|
|
12
|
-
| PydanticAI | `@ag-ui/client` (HttpAgent)
|
|
13
|
-
| Google ADK | `@ag-ui/client` (HttpAgent)
|
|
14
|
-
| LlamaIndex | `@ag-ui/llamaindex`
|
|
15
|
-
| Agno | `@ag-ui/
|
|
16
|
-
| AWS Strands | `@ag-ui/client` (HttpAgent)
|
|
17
|
-
| Microsoft Agent Framework | `@ag-ui/client` (HttpAgent)
|
|
18
|
-
| AG2 | `@ag-ui/client` (HttpAgent)
|
|
19
|
-
| A2A | `@ag-ui/a2a`
|
|
6
|
+
| Framework | Package | Construct |
|
|
7
|
+
| ------------------------- | ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
8
|
+
| Mastra | `@ag-ui/mastra` | `MastraAgent.getLocalAgents({ mastra, resourceId? })` (record; `resourceId` required only when the agent has Memory enabled) |
|
|
9
|
+
| LangGraph | `@copilotkit/runtime/langgraph` | `new LangGraphAgent({ deploymentUrl, graphId })` |
|
|
10
|
+
| CrewAI Crews | `@ag-ui/crewai` | `new CrewAIAgent({ url })` |
|
|
11
|
+
| CrewAI Flows | `@ag-ui/client` (HttpAgent) | `new HttpAgent({ url })` |
|
|
12
|
+
| PydanticAI | `@ag-ui/client` (HttpAgent) | `new HttpAgent({ url })` |
|
|
13
|
+
| Google ADK | `@ag-ui/client` (HttpAgent) | `new HttpAgent({ url })` |
|
|
14
|
+
| LlamaIndex | `@ag-ui/llamaindex` | `new LlamaIndexAgent({ url: ".../run" })` (`/run` suffix) |
|
|
15
|
+
| Agno | `@ag-ui/client` (HttpAgent) | `new HttpAgent({ url: ".../agui" })` (`/agui` suffix) |
|
|
16
|
+
| AWS Strands | `@ag-ui/client` (HttpAgent) | `new HttpAgent({ url })` |
|
|
17
|
+
| Microsoft Agent Framework | `@ag-ui/client` (HttpAgent) | `new HttpAgent({ url })` |
|
|
18
|
+
| AG2 | `@ag-ui/client` (HttpAgent) | `new HttpAgent({ url })` |
|
|
19
|
+
| A2A | `@ag-ui/a2a` | `new A2AAgent({ a2aClient })` (pre-built `A2AClient`, not a URL) |
|
|
20
20
|
|
|
21
21
|
MCP Apps is NOT a framework — it's a runtime middleware:
|
|
22
22
|
`new CopilotRuntime({ agents, mcpApps: { servers: [...] } })`. See
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
CopilotRuntime,
|
|
86
86
|
createCopilotRuntimeHandler,
|
|
87
87
|
} from "@copilotkit/runtime/v2";
|
|
88
|
-
import { LangGraphAgent } from "@
|
|
88
|
+
import { LangGraphAgent } from "@copilotkit/runtime/langgraph";
|
|
89
89
|
|
|
90
90
|
const runtime = new CopilotRuntime({
|
|
91
91
|
agents: {
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
CopilotRuntime,
|
|
115
115
|
createCopilotRuntimeHandler,
|
|
116
116
|
} from "@copilotkit/runtime/v2";
|
|
117
|
-
import { LangGraphAgent } from "@
|
|
117
|
+
import { LangGraphAgent } from "@copilotkit/runtime/langgraph";
|
|
118
118
|
import { CrewAIAgent } from "@ag-ui/crewai";
|
|
119
119
|
import { HttpAgent } from "@ag-ui/client";
|
|
120
120
|
|
|
@@ -170,7 +170,7 @@ export default { fetch: handler };
|
|
|
170
170
|
Wrong:
|
|
171
171
|
|
|
172
172
|
```typescript
|
|
173
|
-
import { LangGraphAgent } from "@
|
|
173
|
+
import { LangGraphAgent } from "@copilotkit/runtime/langgraph";
|
|
174
174
|
|
|
175
175
|
new LangGraphAgent({ deploymentUrl: "/api/copilotkit", graphId: "agent" });
|
|
176
176
|
```
|
|
@@ -221,17 +221,17 @@ Wrong:
|
|
|
221
221
|
|
|
222
222
|
```typescript
|
|
223
223
|
import { LlamaIndexAgent } from "@ag-ui/llamaindex";
|
|
224
|
-
import {
|
|
224
|
+
import { HttpAgent } from "@ag-ui/client";
|
|
225
225
|
|
|
226
226
|
new LlamaIndexAgent({ url: "http://localhost:8000" });
|
|
227
|
-
new
|
|
227
|
+
new HttpAgent({ url: "http://localhost:8000" });
|
|
228
228
|
```
|
|
229
229
|
|
|
230
230
|
Correct:
|
|
231
231
|
|
|
232
232
|
```typescript
|
|
233
233
|
new LlamaIndexAgent({ url: "http://localhost:8000/run" });
|
|
234
|
-
new
|
|
234
|
+
new HttpAgent({ url: "http://localhost:8000/agui" });
|
|
235
235
|
```
|
|
236
236
|
|
|
237
237
|
LlamaIndex requires a `/run` suffix, Agno requires `/agui`. The generic HttpAgent fallback
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
LangGraph — wired via `@
|
|
2
|
-
self-hosted LangGraph servers.
|
|
1
|
+
LangGraph — wired via `@copilotkit/runtime/langgraph`. Supports LangGraph Platform
|
|
2
|
+
deployments and self-hosted LangGraph servers.
|
|
3
3
|
|
|
4
4
|
## Install
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
```
|
|
6
|
+
`LangGraphAgent` (and `LangGraphHttpAgent` for self-hosted AG-UI LangGraph servers)
|
|
7
|
+
ship with `@copilotkit/runtime` — no separate install needed.
|
|
9
8
|
|
|
10
9
|
## Minimal wire-up
|
|
11
10
|
|
|
@@ -14,7 +13,7 @@ import {
|
|
|
14
13
|
CopilotRuntime,
|
|
15
14
|
createCopilotRuntimeHandler,
|
|
16
15
|
} from "@copilotkit/runtime/v2";
|
|
17
|
-
import { LangGraphAgent } from "@
|
|
16
|
+
import { LangGraphAgent } from "@copilotkit/runtime/langgraph";
|
|
18
17
|
|
|
19
18
|
const runtime = new CopilotRuntime({
|
|
20
19
|
agents: {
|