(self, name: str, description: str, handler: Callable[[str], Awaitable[Any]])
| 25 | self._current_agents = {} |
| 26 | |
| 27 | def register_agent(self, name: str, description: str, handler: Callable[[str], Awaitable[Any]]): |
| 28 | agent = AgentInfo(name=name, description=description, handler=handler) |
| 29 | self._current_agents[name] = agent |
| 30 | |
| 31 | async def route_request(self, line: str): |
| 32 | classes_str = json.dumps(self._current_agents, indent=2, default=lambda o: None, allow_nan=False) |