Skip to content

Commit d60f2d4

Browse files
authored
chore: Update Intelligence version in the demo app (CopilotKit#4516)
<!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. **Please PLEASE reach out to us first before starting any significant work on new or existing features.** By the time you've gotten here, you're looking at creating a pull request so hopefully we're not too late. We love community contributions! That said, we want to make sure we're all on the same page before you start. Investing a lot of time and effort just to find out it doesn't align with the upstream project feels awful, and we don't want that to happen. It also helps to make sure the work you're planning isn't already in progress. As described in our contributing guide, please file an issue first: https://github.com/ag-ui-protocol/ag-ui/issues Or, reach out to us on Discord: https://discord.com/invite/6dffbvGU3D You can learn more about contributing to copilotkit here: https://github.com/copilotkit/copilotkit/blob/master/CONTRIBUTING.md Happy contributing! --> ## What does this PR do? (Describe the changes introduced in this PR) ## Related PRs and Issues - (Direct link to related PR or issue, if relevant) ## Checklist - [ ] I have read the [Contribution Guide](https://github.com/copilotkit/copilotkit/blob/master/CONTRIBUTING.md) - [ ] If the PR changes or adds functionality, I have updated the relevant documentation - [ ] "Allow edits by maintainers" is checked (lets us help iterate on your PR directly — faster turnaround for everyone)
2 parents 4d2ae71 + ff929fb commit d60f2d4

6 files changed

Lines changed: 1176 additions & 1881 deletions

File tree

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
# Used by the LangGraph agent
12
OPENAI_API_KEY=
3+
4+
# Points at the running instance of the BFF
25
COPILOTKIT_RUNTIME_URL=http://localhost:4000/api/copilotkit
36

47
# CopilotKit license — run `copilotkit license` to get one
@@ -11,8 +14,4 @@ INTELLIGENCE_API_KEY=cpk_sPRVSEED_seed0privat0longtoken00
1114
INTELLIGENCE_ORGANIZATION_ID=casa-de-erlang
1215

1316
# Optional MCP App server for demos. Defaults to Excalidraw when unset.
14-
MCP_SERVER_URL=https://mcp.excalidraw.com
15-
16-
# Optional thread culler tuning
17-
THREAD_STALE_HOURS=3
18-
THREAD_CULL_BATCH_SIZE=1000
17+
MCP_SERVER_URL=https://mcp.excalidraw.com

examples/integrations/langgraph-python-threads/apps/app/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
},
1010
"dependencies": {
1111
"@ag-ui/client": "0.0.52",
12-
"@copilotkit/a2ui-renderer": "1.56.3",
13-
"@copilotkit/react-core": "1.56.3",
14-
"@copilotkit/react-ui": "1.56.3",
12+
"@copilotkit/a2ui-renderer": "1.56.4",
13+
"@copilotkit/react-core": "1.56.4",
14+
"@copilotkit/react-ui": "1.56.4",
1515
"@hono/node-server": "^1.19.14",
1616
"@radix-ui/react-checkbox": "^1.3.3",
1717
"@radix-ui/react-label": "^2.1.8",
1818
"@radix-ui/react-separator": "^1.1.8",
19+
"@tanstack/pacer": "0.21.0",
1920
"class-variance-authority": "^0.7.1",
2021
"clsx": "^2.1.1",
2122
"hono": "^4.9.8",

examples/integrations/langgraph-python-threads/apps/bff/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
"start": "node dist/server.js"
1010
},
1111
"dependencies": {
12-
"@copilotkit/runtime": "1.56.3",
12+
"@copilotkit/runtime": "1.56.4",
1313
"@hono/node-server": "^1.13.6",
1414
"hono": "^4.7.11",
15+
"express": "5.2.1",
16+
"reflect-metadata": "0.2.2",
1517
"zod": "^3.23.8"
1618
},
1719
"devDependencies": {

examples/integrations/langgraph-python-threads/apps/bff/src/server.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { serve } from "@hono/node-server";
22
import {
33
CopilotRuntime,
44
CopilotKitIntelligence,
5-
createCopilotEndpoint,
5+
createCopilotHonoHandler,
66
} from "@copilotkit/runtime/v2";
77
import { LangGraphAgent } from "@copilotkit/runtime/langgraph";
88

@@ -11,7 +11,6 @@ const intelligence = new CopilotKitIntelligence({
1111
process.env.INTELLIGENCE_API_KEY ?? "cpk_sPRVSEED_seed0privat0longtoken00",
1212
apiUrl: process.env.INTELLIGENCE_API_URL ?? "http://localhost:4201",
1313
wsUrl: process.env.INTELLIGENCE_GATEWAY_WS_URL ?? "ws://localhost:4401",
14-
organizationId: process.env.INTELLIGENCE_ORGANIZATION_ID ?? "casa-de-erlang",
1514
});
1615

1716
const agent = new LangGraphAgent({
@@ -21,7 +20,7 @@ const agent = new LangGraphAgent({
2120
langsmithApiKey: process.env.LANGSMITH_API_KEY ?? "",
2221
});
2322

24-
const app = createCopilotEndpoint({
23+
const app = createCopilotHonoHandler({
2524
basePath: "/api/copilotkit",
2625
runtime: new CopilotRuntime({
2726
intelligence,

examples/integrations/langgraph-python-threads/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ services:
5858
# ---------------------------------------------------------------------------
5959

6060
intelligence:
61-
image: ghcr.io/copilotkit/intelligence/composite:0.0.0-ghcr.20260422.1
61+
image: ghcr.io/copilotkit/intelligence/composite:0.1.0-rc.16
6262
ports:
6363
- "${APP_API_HOST_PORT:-4201}:4201"
6464
- "${REALTIME_GATEWAY_HOST_PORT:-4401}:4401"

0 commit comments

Comments
 (0)