import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Corti from "../../../index.js"; export declare namespace AgentsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * Create, read, update, and delete agents. */ export declare class AgentsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options: AgentsClient.Options); /** * @deprecated * * This endpoint retrieves a list of all agents that can be called by the Corti Agent Framework. * * @param {Corti.AgentsListRequest} request * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.BadRequestError} * @throws {@link Corti.UnauthorizedError} * * @example * await client.agents.list() */ list(request?: Corti.AgentsListRequest, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise; private __list; /** * @deprecated * * This endpoint allows the creation of a new agent that can be utilized in the `POST /agents/{id}/v1/message:send` endpoint. * * @param {Corti.AgentsCreateAgent} request * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.BadRequestError} * @throws {@link Corti.UnauthorizedError} * @throws {@link Corti.UnprocessableEntityError} * * @example * await client.agents.create({ * name: "name", * description: "description" * }) */ create(request: Corti.AgentsCreateAgent, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * @deprecated * * This endpoint retrieves an agent by its identifier. The agent contains information about its capabilities and the experts it can call. * * @param {string} id - The identifier of the agent associated with the context. * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.BadRequestError} * @throws {@link Corti.UnauthorizedError} * @throws {@link Corti.NotFoundError} * * @example * await client.agents.get("12345678-90ab-cdef-gh12-34567890abc") */ get(id: string, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise; private __get; /** * @deprecated * * This endpoint deletes an agent by its identifier. Once deleted, the agent can no longer be used in threads. * * @param {string} id - The identifier of the agent associated with the context. * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.BadRequestError} * @throws {@link Corti.UnauthorizedError} * @throws {@link Corti.NotFoundError} * * @example * await client.agents.delete("12345678-90ab-cdef-gh12-34567890abc") */ delete(id: string, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise; private __delete; /** * @deprecated * * This endpoint updates an existing agent. Only the fields provided in the request body will be updated; other fields will remain unchanged. * * @param {string} id - The identifier of the agent associated with the context. * @param {Corti.AgentsUpdateAgent} request * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.BadRequestError} * @throws {@link Corti.UnauthorizedError} * @throws {@link Corti.NotFoundError} * @throws {@link Corti.UnprocessableEntityError} * * @example * await client.agents.update("12345678-90ab-cdef-gh12-34567890abc") */ update(id: string, request?: Corti.AgentsUpdateAgent, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise; private __update; /** * @deprecated * * This endpoint retrieves the agent card in JSON format, which provides metadata about the agent, including its name, description, and the experts it can call. * * @param {string} id - The identifier of the agent associated with the context. * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.BadRequestError} * @throws {@link Corti.UnauthorizedError} * @throws {@link Corti.NotFoundError} * * @example * await client.agents.getCard("12345678-90ab-cdef-gh12-34567890abc") */ getCard(id: string, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise; private __getCard; /** * @deprecated * * This endpoint sends a message to the specified agent to start or continue a task. The agent processes the message and returns a response. If the message contains a task ID that matches an ongoing task, the agent will continue that task; otherwise, it will start a new task. * * @param {string} id - The identifier of the agent associated with the context. * @param {Corti.AgentsMessageSendParams} request * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.BadRequestError} * @throws {@link Corti.UnauthorizedError} * @throws {@link Corti.ForbiddenError} * @throws {@link Corti.NotFoundError} * @throws {@link Corti.UnprocessableEntityError} * * @example * await client.agents.messageSend("12345678-90ab-cdef-gh12-34567890abc", { * message: { * role: "user", * parts: [{ * kind: "text", * text: "text" * }], * messageId: "messageId", * kind: "message" * } * }) */ messageSend(id: string, request: Corti.AgentsMessageSendParams, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise; private __messageSend; /** * @deprecated * * This endpoint retrieves the status and details of a specific task associated with the given agent. It provides information about the task's current state, history, and any artifacts produced during its execution. * * @param {string} id - The identifier of the agent associated with the context. * @param {string} taskId - The identifier of the task to retrieve. * @param {Corti.AgentsGetTaskRequest} request * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.BadRequestError} * @throws {@link Corti.UnauthorizedError} * @throws {@link Corti.ForbiddenError} * @throws {@link Corti.NotFoundError} * * @example * await client.agents.getTask("12345678-90ab-cdef-gh12-34567890abc", "taskId") */ getTask(id: string, taskId: string, request?: Corti.AgentsGetTaskRequest, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise; private __getTask; /** * @deprecated * * This endpoint retrieves all tasks and top-level messages associated with a specific context for the given agent. * * @param {string} id - The identifier of the agent associated with the context. * @param {string} contextId - The identifier of the context (thread) to retrieve tasks for. * @param {Corti.AgentsGetContextRequest} request * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.BadRequestError} * @throws {@link Corti.UnauthorizedError} * @throws {@link Corti.NotFoundError} * * @example * await client.agents.getContext("12345678-90ab-cdef-gh12-34567890abc", "contextId") */ getContext(id: string, contextId: string, request?: Corti.AgentsGetContextRequest, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise; private __getContext; /** * @deprecated * * This endpoint deletes a context (thread) and scrubs all associated data including messages, memories, and memory chunks for the given agent. Thread and task metadata is soft-deleted for audit purposes, while content columns are irreversibly overwritten. * * @param {string} id - The identifier of the agent associated with the context. * @param {string} contextId - The identifier of the context (thread) to delete. * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.BadRequestError} * @throws {@link Corti.UnauthorizedError} * @throws {@link Corti.NotFoundError} * * @example * await client.agents.deleteContext("12345678-90ab-cdef-gh12-34567890abc", "contextId") */ deleteContext(id: string, contextId: string, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise; private __deleteContext; /** * @deprecated * * This endpoint retrieves the experts registry, which contains information about all available experts that can be referenced when creating agents through the AgentsCreateExpertReference schema. * * @param {Corti.AgentsGetRegistryExpertsRequest} request * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.BadRequestError} * @throws {@link Corti.UnauthorizedError} * @throws {@link Corti.UnprocessableEntityError} * * @example * await client.agents.getRegistryExperts({ * limit: 100, * offset: 0 * }) */ getRegistryExperts(request?: Corti.AgentsGetRegistryExpertsRequest, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise; private __getRegistryExperts; }