import type { AgentsClient as GeneratedAgentsClient } from "../../../api/resources/conversationalAi/resources/agents/client/Client"; import type { ToolsClient as GeneratedToolsClient } from "../../../api/resources/conversationalAi/resources/tools/client/Client"; import type { BaseRequestOptions } from "../../../BaseClient"; import type { AgentProject } from "../project/AgentProject"; import { Agent } from "./Agent"; import { type AgentPushResult } from "./errors"; export interface AgentPushOptions { /** * The agent to update. Without it (and without a project that knows the agent), `push` creates a new agent, so * keep the returned `agentId`. Not allowed with `project`, which records the id itself. */ agentId?: string; /** * An agents-as-code project in the CLI's layout. Its `agents.json` and `tools.json` say which agent and tools on * the server this definition is; `push` records new ids there and writes the configs it sent. */ project?: AgentProject; /** Update this branch of the agent instead of its main branch. */ branchId?: string; /** Describes the new version, for agents with versioning. */ versionDescription?: string; /** Passed to every API call `push` makes. */ requestOptions?: BaseRequestOptions; } export interface AgentPullOptions { /** Writes the agent and its tools into this project, and records their ids. */ project?: AgentProject; /** Pull this branch instead of the main one. */ branchId?: string; /** Passed to every API call `pull` makes. */ requestOptions?: BaseRequestOptions; } interface Clients { agents: GeneratedAgentsClient; tools: GeneratedToolsClient; } /** The steps of `agents.push()`. See `AgentsClient.push` for what it does. */ export declare function pushAgent(clients: Clients, agent: Agent, options: AgentPushOptions): Promise; /** The steps of `agents.pull()`. */ export declare function pullAgent(clients: Clients, agentId: string, options: AgentPullOptions): Promise; export {};