AgentsClient.SubmitToolOutputsToStreamAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET