import { AgentsContext } from "../../api/agentsContext.js"; import { ThreadRun, ToolOutput } from "../../models/models.js"; import { RunsCancelRunOptionalParams, RunsSubmitToolOutputsToRunOptionalParams, RunsUpdateRunOptionalParams, RunsGetRunOptionalParams, RunsListRunsOptionalParams, RunsCreateRunOptionalParams } from "../../api/runs/options.js"; import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; import { AgentRunResponse } from "../../models/streamingModels.js"; import { CreateThreadAndRunOptionalParams } from "../../api/options.js"; import { PollerLike, OperationState } from "@azure/core-lro"; /** Interface representing a Runs operations. */ export interface RunsOperations { /** Cancels a run of an in‐progress thread. */ cancel: (threadId: string, runId: string, options?: RunsCancelRunOptionalParams) => Promise; /** Submits outputs from tools as requested by tool calls in a run. */ submitToolOutputs: (threadId: string, runId: string, toolOutputs: ToolOutput[], options?: RunsSubmitToolOutputsToRunOptionalParams) => AgentRunResponse; /** Modifies an existing thread run. */ update: (threadId: string, runId: string, options?: RunsUpdateRunOptionalParams) => Promise; /** Gets an existing run from an existing thread. */ get: (threadId: string, runId: string, options?: RunsGetRunOptionalParams) => Promise; /** Gets a list of runs for a specified thread. */ list: (threadId: string, options?: RunsListRunsOptionalParams) => PagedAsyncIterableIterator; /** Creates a new run for an agent thread. */ create: (threadId: string, assistantId: string, options?: RunsCreateRunOptionalParams) => AgentRunResponse; /** Creates a new run for an agent thread with polling. */ createAndPoll: (threadId: string, assistantId: string, options?: RunsCreateRunOptionalParams) => PollerLike, ThreadRun>; /** Creates a new thread and run for an agent. */ createThreadAndRun: (assistantId: string, options?: CreateThreadAndRunOptionalParams) => AgentRunResponse; } export declare function _getRunsOperations(context: AgentsContext): RunsOperations; //# sourceMappingURL=index.d.ts.map