co:valence

co:valence · GPT-Aktionen

FastAPI Application

This is an OpenAPI specification for the provided FastAPI application.

  • POST /add_task/Adds a task to the task list.
  • POST /task_creation_agent/Generates new tasks based on a given task description and its results.
  • POST /prioritization_agent/Prioritizes tasks based on a given task ID and objective.
  • POST /execution_agent/Executes a task based on the given objective and task details.
Ursprüngliches API-Schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "FastAPI Application",
    "description": "This is an OpenAPI specification for the provided FastAPI application.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://baby-agi-iverfinne.replit.app/",
      "description": "Production server"
    }
  ],
  "paths": {
    "/add_task/": {
      "post": {
        "operationId": "addTask",
        "summary": "Adds a task to the task list.",
        "responses": {
          "200": {
            "description": "Task successfully added",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/task_creation_agent/": {
      "post": {
        "operationId": "taskCreationAgent",
        "summary": "Generates new tasks based on a given task description and its results.",
        "responses": {
          "200": {
            "description": "New tasks created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "task_name": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/prioritization_agent/": {
      "post": {
        "operationId": "prioritizationAgent",
        "summary": "Prioritizes tasks based on a given task ID and objective.",
        "responses": {
          "200": {
            "description": "Tasks reprioritized successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/execution_agent/": {
      "post": {
        "operationId": "executionAgent",
        "summary": "Executes a task based on the given objective and task details.",
        "responses": {
          "200": {
            "description": "Task executed successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}