build agent correctly
This commit is contained in:
@@ -26,9 +26,9 @@ export const POST = async (req: NextRequest) => {
|
||||
// 2. Create the CopilotRuntime instance with Auth0 configuration
|
||||
const runtime = new CopilotRuntime({
|
||||
agents: {
|
||||
"sample_agent": new LangGraphAgent({
|
||||
"vpi_1000": new LangGraphAgent({
|
||||
deploymentUrl: process.env.LANGGRAPH_DEPLOYMENT_URL || "http://localhost:8123",
|
||||
graphId: "sample_agent",
|
||||
graphId: "vpi_1000",
|
||||
langsmithApiKey: process.env.LANGSMITH_API_KEY || "",
|
||||
assistantConfig: {
|
||||
context: {
|
||||
|
||||
@@ -19,7 +19,7 @@ export default function RootLayout({
|
||||
<html lang="en">
|
||||
<body className={"antialiased"}>
|
||||
<Auth0Provider>
|
||||
<CopilotKit runtimeUrl="/api/copilotkit" agent="sample_agent">
|
||||
<CopilotKit runtimeUrl="/api/copilotkit" agent="vpi_1000">
|
||||
{children}
|
||||
</CopilotKit>
|
||||
</Auth0Provider>
|
||||
|
||||
Reference in New Issue
Block a user