Skip to content

Commit 7d1316c

Browse files
authored
chore: use uv, upgrade packages (#10)
Signed-off-by: Tyler Slaton <[email protected]>
1 parent 2a12ac1 commit 7d1316c

File tree

3 files changed

+19
-20
lines changed

3 files changed

+19
-20
lines changed

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
/* config options here */
4+
serverExternalPackages: ["@copilotkit/runtime"],
55
};
66

77
export default nextConfig;

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@
1414
"postinstall": "npm run install:agent"
1515
},
1616
"dependencies": {
17-
"@ag-ui/langgraph": "0.0.18",
18-
"@copilotkit/react-core": "1.10.6",
19-
"@copilotkit/react-ui": "1.10.6",
20-
"@copilotkit/runtime": "1.10.6",
21-
"next": "16.0.1",
22-
"react": "^19.2.0",
23-
"react-dom": "^19.2.0",
17+
"@copilotkit/react-core": "1.50.0",
18+
"@copilotkit/react-ui": "1.50.0",
19+
"@copilotkit/runtime": "1.50.0",
20+
"next": "16.0.8",
21+
"react": "^19.2.1",
22+
"react-dom": "^19.2.1",
2423
"zod": "^3.24.4"
2524
},
2625
"devDependencies": {
@@ -32,7 +31,7 @@
3231
"@types/react-dom": "^19",
3332
"concurrently": "^9.1.2",
3433
"eslint": "^9",
35-
"eslint-config-next": "16.0.1",
34+
"eslint-config-next": "16.0.7",
3635
"tailwindcss": "^4",
3736
"typescript": "^5"
3837
}

src/app/api/copilotkit/route.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,33 @@ import {
33
ExperimentalEmptyAdapter,
44
copilotRuntimeNextJSAppRouterEndpoint,
55
} from "@copilotkit/runtime";
6-
7-
import { LangGraphAgent } from "@ag-ui/langgraph"
6+
import { LangGraphAgent } from "@copilotkit/runtime/langgraph";
87
import { NextRequest } from "next/server";
9-
8+
109
// 1. You can use any service adapter here for multi-agent support. We use
1110
// the empty adapter since we're only using one agent.
1211
const serviceAdapter = new ExperimentalEmptyAdapter();
13-
12+
1413
// 2. Create the CopilotRuntime instance and utilize the LangGraph AG-UI
1514
// integration to setup the connection.
1615
const runtime = new CopilotRuntime({
1716
agents: {
18-
"sample_agent": new LangGraphAgent({
19-
deploymentUrl: process.env.LANGGRAPH_DEPLOYMENT_URL || "http://localhost:8123",
17+
sample_agent: new LangGraphAgent({
18+
deploymentUrl:
19+
process.env.LANGGRAPH_DEPLOYMENT_URL || "http://localhost:8123",
2020
graphId: "sample_agent",
2121
langsmithApiKey: process.env.LANGSMITH_API_KEY || "",
2222
}),
23-
}
23+
},
2424
});
25-
25+
2626
// 3. Build a Next.js API route that handles the CopilotKit runtime requests.
2727
export const POST = async (req: NextRequest) => {
2828
const { handleRequest } = copilotRuntimeNextJSAppRouterEndpoint({
29-
runtime,
29+
runtime,
3030
serviceAdapter,
3131
endpoint: "/api/copilotkit",
3232
});
33-
33+
3434
return handleRequest(req);
35-
};
35+
};

0 commit comments

Comments
 (0)