ThreadRuns.SubmitToolOutputsToStream 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.CollectionResult<Azure.AI.Agents.Persistent.StreamingUpdate> SubmitToolOutputsToStream(Azure.AI.Agents.Persistent.ThreadRun run, System.Collections.Generic.IEnumerable<Azure.AI.Agents.Persistent.ToolOutput> toolOutputs, System.Threading.CancellationToken cancellationToken = default);
abstract member SubmitToolOutputsToStream : Azure.AI.Agents.Persistent.ThreadRun * seq<Azure.AI.Agents.Persistent.ToolOutput> * System.Threading.CancellationToken -> System.ClientModel.CollectionResult<Azure.AI.Agents.Persistent.StreamingUpdate>
override this.SubmitToolOutputsToStream : Azure.AI.Agents.Persistent.ThreadRun * seq<Azure.AI.Agents.Persistent.ToolOutput> * System.Threading.CancellationToken -> System.ClientModel.CollectionResult<Azure.AI.Agents.Persistent.StreamingUpdate>
Public Overridable Function SubmitToolOutputsToStream (run As ThreadRun, toolOutputs As IEnumerable(Of ToolOutput), Optional cancellationToken As CancellationToken = Nothing) As CollectionResult(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.