import { AgentCategory } from "../../constants/agent";
import { DSL } from "../database/agent";

/**
 * 分页请求参数
 */
export interface IAgentPaginationParams {
  keywords?: string;
  page?: number;
  page_size?: number;
  orderby?: string;
  desc?: boolean;
  canvas_category?: AgentCategory;
}


export interface IDebugSingleRequestBody {
  component_id: string;
  params: Record<string, any>;
}

export interface IAgentCreateRequestBody {
  title: string;
  avatar?: string;
  description?: string | { zh?: string; en?: string };
  dsl: DSL;
  canvas_category: string;
}

export interface IAgentSettingRequestBody {
  avatar?: string;
  canvas_category?: string;
  description?: string;
  id: string;
  title: string;
  permission: string;
}

export interface IAgentSetDSLRequestBody {
  id: string;
  title: string;
  dsl: DSL;
}
