Merge branch 'main' of github.com:Berack96/upo-appAI into 21-team-monitoring

This commit is contained in:
2025-10-13 10:57:30 +02:00
16 changed files with 551 additions and 113 deletions

View File

@@ -1,5 +1,4 @@
import asyncio
import logging
from typing import Callable
from agno.run.agent import RunOutputEvent
from agno.team import Team, TeamRunEvent, TeamRunOutputEvent
@@ -8,8 +7,6 @@ from app.agents.prompts import *
from app.configs import AppConfig, AppModel
from app.api.tools import *
logging = logging.getLogger("AppTeam")
class AppTeam:
def __init__(self, configs: AppConfig, team_models: AppModel, team_leader: AppModel | None = None):
@@ -25,7 +22,6 @@ class AppTeam:
return asyncio.run(self.run_team_async(query))
async def run_team_async(self, query: str) -> str:
logging.info(f"Running team q='{query}'")
team = AppTeam.create_team_with(self.configs, self.team_models, self.team_leader)
result = "No output from team"
@@ -38,7 +34,6 @@ class AppTeam:
thinking = result.rfind("</think>")
if thinking != -1: result = result[thinking:]
logging.info(f"Team finished")
return result
@classmethod