Files
Auto-GPT/autogpt/agent_protocol/server.py
2023-08-18 12:56:28 +02:00

19 lines
494 B
Python

# generated by fastapi-codegen:
# filename: openapi.yml
# timestamp: 2023-08-07T12:14:43+00:00
from __future__ import annotations
from fastapi import FastAPI
from .db import NotFoundException
from .middlewares import not_found_exception_handler
app = FastAPI(
title="Agent Communication Protocol",
description="Specification of the API protocol for communication with an agent.",
version="v0.3",
)
app.add_exception_handler(NotFoundException, not_found_exception_handler)