Feat : text to speech & flight api

This commit is contained in:
martin legrand
2025-03-02 20:51:50 +01:00
parent c2c1c7f09f
commit 0c0536c43a
9 changed files with 306 additions and 8 deletions
+2
View File
@@ -26,6 +26,8 @@ class AgentRouter:
return result
def select_agent(self, text: str) -> Agent:
if text is None:
return self.agents[0]
result = self.classify_text(text)
for agent in self.agents:
if result["labels"][0] == agent.role: