import type { BotInfo } from '@easyflow/types';

import { requestClient } from '#/api/request';

/**
 * 获取所有智能体
 */
export async function getBotList() {
  return requestClient.get<BotInfo[]>('/api/v1/bot/list');
}

/**
 * 获取智能体信息
 */
export async function getBotDetail(id: string) {
  return requestClient.get<BotInfo>('/api/v1/bot/detail', {
    params: { id },
  });
}
