Skip to content

Commit 6be8c48

Browse files
committed
fix: agents not loaded in api
1 parent 10577ed commit 6be8c48

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/api.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import subprocess
1111
import os
1212
from abi import logger
13-
from src.__modules__ import get_modules
13+
from src import modules
1414

1515
# Authentication
1616
from fastapi.security import OAuth2PasswordRequestForm
@@ -20,8 +20,6 @@
2020
from src.openapi_doc import TAGS_METADATA, API_LANDING_HTML
2121
from src import config
2222

23-
# Automatic loading of agents from modules
24-
2523
# Init API
2624
TITLE = config.api_title
2725
DESCRIPTION = config.api_description
@@ -190,9 +188,6 @@ def root():
190188
return API_LANDING_HTML.replace("[TITLE]", TITLE).replace("[LOGO_NAME]", logo_name)
191189

192190
# Add agents to the API
193-
modules = get_modules(config)
194-
195-
# Collect all agents first
196191
all_agents: list = []
197192
for module in modules:
198193
for agent in module.agents:

0 commit comments

Comments
 (0)