Share via


ThreadRuns.GetRunStep Method

Definition

Retrieves a single run step from a thread run.

public virtual Azure.Response<Azure.AI.Agents.Persistent.RunStep> GetRunStep(string threadId, string runId, string stepId, System.Collections.Generic.IEnumerable<Azure.AI.Agents.Persistent.RunAdditionalFieldList> include = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRunStep : string * string * string * seq<Azure.AI.Agents.Persistent.RunAdditionalFieldList> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Agents.Persistent.RunStep>
override this.GetRunStep : string * string * string * seq<Azure.AI.Agents.Persistent.RunAdditionalFieldList> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Agents.Persistent.RunStep>
Public Overridable Function GetRunStep (threadId As String, runId As String, stepId As String, Optional include As IEnumerable(Of RunAdditionalFieldList) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RunStep)

Parameters

threadId
String

Identifier of the thread.

runId
String

Identifier of the run.

stepId
String

Identifier of the run step.

include
IEnumerable<RunAdditionalFieldList>

A list of additional fields to include in the response. Currently the only supported value is step_details.tool_calls[*].file_search.results[*].content to fetch the file search result content.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

threadId, runId or stepId is null.

threadId, runId or stepId is an empty string, and was expected to be non-empty.

Applies to