Skip to content

Commit

Permalink
Initialized API
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninoLorenzo committed Jun 21, 2024
1 parent d6128d5 commit a0e2b39
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
"""
API Interface for AI-OPS, here is provided the list of available endpoints.
Session Related:
- /session/list: Return all sessions.
- /session/get/{sid}: Return a specific session by ID.
- /session/new/{name}: Creates a new session.
- /session/{sid}/rename/{new_name}: Rename a session.
- /session/{sid}/save: Save a session.
- /session/{sid}/delete: Delete a session.
Agent Related:
- /session/{sid}/query/{q}: Makes a query to the Agent.
Plan Related:
- /session/{sid}/plan/list: Return all Plans in the current Session.
- /session/{sid}/plan/execute: Executes the last plan.
Knowledge Related:
- /collections/list: Returns available Collections.
- /collections/new: Creates a new Collection.
"""
from fastapi import FastAPI

from src import upload_knowledge
Expand Down

0 comments on commit a0e2b39

Please sign in to comment.