We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10577ed commit 6be8c48Copy full SHA for 6be8c48
1 file changed
src/api.py
@@ -10,7 +10,7 @@
10
import subprocess
11
import os
12
from abi import logger
13
-from src.__modules__ import get_modules
+from src import modules
14
15
# Authentication
16
from fastapi.security import OAuth2PasswordRequestForm
@@ -20,8 +20,6 @@
20
from src.openapi_doc import TAGS_METADATA, API_LANDING_HTML
21
from src import config
22
23
-# Automatic loading of agents from modules
24
-
25
# Init API
26
TITLE = config.api_title
27
DESCRIPTION = config.api_description
@@ -190,9 +188,6 @@ def root():
190
188
return API_LANDING_HTML.replace("[TITLE]", TITLE).replace("[LOGO_NAME]", logo_name)
191
189
192
# Add agents to the API
193
-modules = get_modules(config)
194
195
-# Collect all agents first
196
all_agents: list = []
197
for module in modules:
198
for agent in module.agents:
0 commit comments