Share via


AgentsClient.SubmitToolOutputsToStreamAsync Method

Definition

Submits outputs from tools as requested by tool calls in a stream. Stream updates that need submitted tool outputs will have a status of 'RunStatus.RequiresAction'.

public virtual System.ClientModel.AsyncCollectionResult<Azure.AI.Projects.StreamingUpdate> SubmitToolOutputsToStreamAsync(Azure.AI.Projects.ThreadRun run, System.Collections.Generic.IEnumerable<Azure.AI.Projects.ToolOutput> toolOutputs, System.Threading.CancellationToken cancellationToken = default);
abstract member SubmitToolOutputsToStreamAsync : Azure.AI.Projects.ThreadRun * seq<Azure.AI.Projects.ToolOutput> * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<Azure.AI.Projects.StreamingUpdate>
override this.SubmitToolOutputsToStreamAsync : Azure.AI.Projects.ThreadRun * seq<Azure.AI.Projects.ToolOutput> * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<Azure.AI.Projects.StreamingUpdate>
Public Overridable Function SubmitToolOutputsToStreamAsync (run As ThreadRun, toolOutputs As IEnumerable(Of ToolOutput), Optional cancellationToken As CancellationToken = Nothing) As AsyncCollectionResult(Of StreamingUpdate)

Parameters

run
ThreadRun

The ThreadRun that the tool outputs should be submitted to.

toolOutputs
IEnumerable<ToolOutput>

A list of tools for which the outputs are being submitted.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

run or toolOutputs is null.

Applies to