Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Agent Protocol v1 (#5254)

merwanehamadi2cf350b7833c
diff --git a/.github/workflows/autogpts-ci.yml b/.github/workflows/autogpts-ci.yml
index ed268ae0b1..2b82b5ca52 100644
--- a/.github/workflows/autogpts-ci.yml
+++ b/.github/workflows/autogpts-ci.yml
@@ -42,7 +42,6 @@ jobs:
run: |
sh run &
sleep 20
- URL=http://127.0.0.1:8000 bash -c "$(curl -fsSL https://raw.githubusercontent.com/AI-Engineers-Foundation/agent-protocol/main/testing_suite/test.sh)"
poetry run agbenchmark --mock
poetry run agbenchmark --test=WriteFile
env:
diff --git a/autogpts/forge/forge/sdk/agent.py b/autogpts/forge/forge/sdk/agent.py
index e610730343..739fd4957f 100644
--- a/autogpts/forge/forge/sdk/agent.py
+++ b/autogpts/forge/forge/sdk/agent.py
@@ -55,14 +55,14 @@ class Agent:
allow_headers=["*"],
)
- app.include_router(router, prefix="/api/v1")
- app.mount("/app", StaticFiles(directory="../../frontend/build/web"), name="app")
+ app.include_router(router, prefix="/ap/v1")
+ # app.mount("/app", StaticFiles(directory="../../frontend/build/web"), name="app")
app.add_middleware(AgentMiddleware, agent=self)
@app.get("/", include_in_schema=False)
async def root():
return RedirectResponse(url='/app/index.html', status_code=307)
-
+
config.loglevel = "ERROR"
config.bind = [f"0.0.0.0:{port}"]
diff --git a/benchmark/agbenchmark/agent_api_interface.py b/benchmark/agbenchmark/agent_api_interface.py
index 8230c513d6..625fb6b2af 100644
--- a/benchmark/agbenchmark/agent_api_interface.py
+++ b/benchmark/agbenchmark/agent_api_interface.py
@@ -20,7 +20,7 @@ async def run_api_agent(
) -> None:
host_value = None
- configuration = Configuration(host=config["AgentBenchmarkConfig"].host)
+ configuration = Configuration(host=config["AgentBenchmarkConfig"].host + "/ap/v1")
async with ApiClient(configuration) as api_client:
api_instance = AgentApi(api_client)
task_request_body = TaskRequestBody(input=task.task)
diff --git a/frontend/lib/main.dart b/frontend/lib/main.dart
index 209faed662..19888bf6a4 100644
--- a/frontend/lib/main.dart
+++ b/frontend/lib/main.dart
@@ -36,7 +36,7 @@ void main() async {
MultiProvider(
providers: [
Provider(
- create: (context) => RestApiUtility("http://127.0.0.1:8000/api/v1"),
+ create: (context) => RestApiUtility("http://127.0.0.1:8000/ap/v1"),
),
ProxyProvider<RestApiUtility, ChatService>(
update: (context, restApiUtility, chatService) =>