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

@@ -16,4 +16,5 @@ dependencies = [
"docstring-parser>=0.17.0",
"jsonschema>=4.25.1",
"copilotkit>=0.1.0",
"ag-ui-langgraph>=0.0.4",
]

View File

@@ -1,5 +1,5 @@
"""
Self-hosted LangGraph agent server using CopilotKit remote endpoint protocol.
Self-hosted LangGraph agent server using AG-UI protocol.
"""
import os
@@ -7,24 +7,23 @@ from fastapi import FastAPI
import uvicorn
from dotenv import load_dotenv
from copilotkit import CopilotKitRemoteEndpoint, LangGraphAgent
from copilotkit.integrations.fastapi import add_fastapi_endpoint
from copilotkit import LangGraphAGUIAgent
from ag_ui_langgraph import add_langgraph_fastapi_endpoint
from main import graph
load_dotenv()
app = FastAPI(title="Cavepedia Agent")
sdk = CopilotKitRemoteEndpoint(
agents=[
LangGraphAgent(
name="vpi_1000",
description="AI assistant with access to cave-related information through the Cavepedia MCP server",
graph=graph,
)
]
add_langgraph_fastapi_endpoint(
app=app,
agent=LangGraphAGUIAgent(
name="vpi_1000",
description="AI assistant with access to cave-related information through the Cavepedia MCP server",
graph=graph,
),
path="/",
)
add_fastapi_endpoint(app, sdk, "/copilotkit")
@app.get("/health")