feat(agent-platform): show bot route runtime status

This commit is contained in:
huanghuoguoguo
2026-07-08 16:07:03 +08:00
parent ee11e97e86
commit 4cbb9415bf
13 changed files with 737 additions and 13 deletions
@@ -38,6 +38,10 @@ class BotsRouterGroup(group.RouterGroup):
logs, total_count = await self.ap.bot_service.list_event_logs(bot_uuid, from_index, max_count)
return self.success(data={'logs': logs, 'total_count': total_count})
@self.route('/<bot_uuid>/event-routes/status', methods=['GET'], auth_type=group.AuthType.USER_TOKEN_OR_API_KEY)
async def _(bot_uuid: str) -> str:
return self.success(data=await self.ap.bot_service.list_event_route_statuses(bot_uuid))
async def _dry_run_event_route(bot_uuid: str) -> str:
json_data = await quart.request.json
if not isinstance(json_data, dict):