Skip to content

Commit

Permalink
Fixed import in api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninoLorenzo committed Nov 9, 2024
1 parent cdd87f3 commit 4089d5e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""
API Interface for AI-OPS, here is provided the list of available endpoints.
# TODO: dependency injection of Agent
# TODO: separate routes
Session Related:
Session routes:
- /session/list : Return all sessions.
- /session/get/{sid} : Return a specific session by ID.
- /session/new/{name} : Creates a new session.
Expand All @@ -12,7 +14,7 @@
Agent Related:
- /session/{sid}/query/{q}: Makes a query to the Agent.
RAG Related:
RAG Routes:
- /collections/list : Returns available Collections.
- /collections/new : Creates a new Collection.
- /collections/upload/ : Upload document to an existing Collection
Expand All @@ -33,7 +35,6 @@
from src.agent import Agent
from src.agent.knowledge import Store, Collection
from src.agent.llm import LLM, AVAILABLE_PROVIDERS
from src.agent.plan import TaskStatus

load_dotenv()
TR = ToolRegistry()
Expand Down

0 comments on commit 4089d5e

Please sign in to comment.