revert some stuff
All checks were successful
Build and Push Agent Docker Image / build (push) Successful in 56s
Build and Push Web Docker Image / build (push) Successful in 3m32s

This commit is contained in:
2025-12-13 01:04:28 +01:00
parent 3a2912c015
commit bad9a4e547
3 changed files with 20 additions and 17 deletions

View File

@@ -4,16 +4,19 @@ import {
copilotRuntimeNextJSAppRouterEndpoint,
} from "@copilotkit/runtime";
import { LangGraphAgent } from "@ag-ui/langgraph";
import { NextRequest } from "next/server";
const serviceAdapter = new ExperimentalEmptyAdapter();
const runtime = new CopilotRuntime({
remoteEndpoints: [
{
url: `${process.env.LANGGRAPH_DEPLOYMENT_URL || "http://localhost:8000"}/copilotkit`,
},
],
agents: {
vpi_1000: new LangGraphAgent({
deploymentUrl: process.env.LANGGRAPH_DEPLOYMENT_URL || "http://localhost:8000",
graphId: "vpi_1000",
langsmithApiKey: process.env.LANGSMITH_API_KEY || "",
}),
},
});
export const POST = async (req: NextRequest) => {