feat(agent-platform): add bot route dry-run

This commit is contained in:
huanghuoguoguo
2026-07-08 14:25:35 +08:00
parent 2004ac0dfc
commit 4e9464dd19
12 changed files with 1466 additions and 32 deletions
+12
View File
@@ -59,6 +59,8 @@ import {
Skill,
ApiRespSkills,
ApiRespSkill,
BotRouteDryRunRequest,
BotRouteDryRunResult,
} from '@/app/infra/entities/api';
import { Plugin } from '@/app/infra/entities/plugin';
import type { PluginLogEntry } from '@/app/infra/entities/plugin';
@@ -454,6 +456,16 @@ export class BackendClient extends BaseHttpClient {
return this.put(`/api/v1/platform/bots/${uuid}`, bot);
}
public dryRunBotEventRoute(
botId: string,
request: BotRouteDryRunRequest,
): Promise<BotRouteDryRunResult> {
return this.post(
`/api/v1/platform/bots/${botId}/event-routes/dry-run`,
request,
);
}
public deleteBot(uuid: string): Promise<object> {
return this.delete(`/api/v1/platform/bots/${uuid}`);
}