import { APIResource } from "../../core/resource.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; /** * Operations for running and managing cloud agents */ export declare class Agent extends APIResource { /** * Create a new agent for the caller's team. Agents can be used as the execution * principal for team-owned runs. * * @example * ```ts * const agentResponse = await client.agent.agent.create({ * name: 'name', * }); * ``` */ create(body: AgentCreateParams, options?: RequestOptions): APIPromise; /** * Update an existing agent. * * @example * ```ts * const agentResponse = await client.agent.agent.update( * 'uid', * ); * ``` */ update(uid: string, body: AgentUpdateParams, options?: RequestOptions): APIPromise; /** * List all agents for the caller's team. Each agent includes an `available` flag * indicating whether it is within the team's plan limit and may be used for runs. * * @example * ```ts * const listAgentIdentitiesResponse = * await client.agent.agent.list(); * ``` */ list(options?: RequestOptions): APIPromise; /** * Delete an agent. All API keys associated with the agent are deleted atomically. * * @example * ```ts * await client.agent.agent.delete('uid'); * ``` */ delete(uid: string, options?: RequestOptions): APIPromise; } export interface AgentResponse { /** * Whether this agent is within the team's plan limit and can be used for runs */ available: boolean; /** * When the agent was created (RFC3339) */ created_at: string; /** * Name of the agent */ name: string; /** * Unique identifier for the agent */ uid: string; } export interface CreateAgentRequest { /** * A name for the agent */ name: string; } export interface ListAgentIdentitiesResponse { agents: Array; } export interface UpdateAgentRequest { /** * The new name for the agent */ name?: string; } export interface AgentCreateParams { /** * A name for the agent */ name: string; } export interface AgentUpdateParams { /** * The new name for the agent */ name?: string; } export declare namespace Agent { export { type AgentResponse as AgentResponse, type CreateAgentRequest as CreateAgentRequest, type ListAgentIdentitiesResponse as ListAgentIdentitiesResponse, type UpdateAgentRequest as UpdateAgentRequest, type AgentCreateParams as AgentCreateParams, type AgentUpdateParams as AgentUpdateParams, }; } //# sourceMappingURL=agent_.d.ts.map