import { APIResource } from "../core/resource.mjs"; import * as AgentsAPI from "./agents.mjs"; import * as UsersAPI from "./users/users.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; export declare class Agents extends APIResource { /** * Create agent */ create(body: AgentCreateParams, options?: RequestOptions): APIPromise; /** * Get agent by ID */ retrieve(id: string, options?: RequestOptions): APIPromise; /** * Update agent (partial) */ update(id: string, body: AgentUpdateParams, options?: RequestOptions): APIPromise; /** * List agents */ list(query?: AgentListParams | null | undefined, options?: RequestOptions): APIPromise; /** * Delete agent */ delete(id: string, options?: RequestOptions): APIPromise; } export interface Agent { id: string; accessedAt?: string | null; avatar?: string | null; chatConfig?: { [key: string]: unknown; } | null; createdAt?: string | null; description?: string | null; model?: string | null; params?: { [key: string]: unknown; } | null; provider?: string | null; systemRole?: string | null; title?: string | null; updatedAt?: string | null; } export interface APIResponseAgent extends UsersAPI.APIResponseBase { data?: Agent; } export interface CreateAgent { title: string; avatar?: string | null; chatConfig?: { [key: string]: unknown; } | null; description?: string | null; model?: string | null; params?: { [key: string]: unknown; } | null; provider?: string | null; systemRole?: string | null; } export interface AgentListResponse extends UsersAPI.APIResponseBase { data?: AgentListResponse.Data; } export declare namespace AgentListResponse { interface Data { agents: Array; total: number; } } export interface AgentCreateParams { title: string; avatar?: string | null; chatConfig?: { [key: string]: unknown; } | null; description?: string | null; model?: string | null; params?: { [key: string]: unknown; } | null; provider?: string | null; systemRole?: string | null; } export interface AgentUpdateParams { title: string; avatar?: string | null; chatConfig?: { [key: string]: unknown; } | null; description?: string | null; model?: string | null; params?: { [key: string]: unknown; } | null; provider?: string | null; systemRole?: string | null; } export interface AgentListParams { keyword?: string; page?: number; pageSize?: number; } export declare namespace Agents { export { type Agent as Agent, type APIResponseAgent as APIResponseAgent, type CreateAgent as CreateAgent, type AgentListResponse as AgentListResponse, type AgentCreateParams as AgentCreateParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, }; } //# sourceMappingURL=agents.d.mts.map