AgentsClient.SubmitToolOutputsToRunAsync 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.
Overloads
SubmitToolOutputsToRunAsync(ThreadRun, IEnumerable<ToolOutput>, CancellationToken) |
Submits outputs from tool calls as requested by a run with a status of 'requires_action' with required_action.type of 'submit_tool_outputs'. |
SubmitToolOutputsToRunAsync(String, String, RequestContent, RequestContext) |
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'. |
SubmitToolOutputsToRunAsync(ThreadRun, IEnumerable<ToolOutput>, CancellationToken)
- Source:
- AgentsClient.cs
Submits outputs from tool calls as requested by a run with a status of 'requires_action' with required_action.type of 'submit_tool_outputs'.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.ThreadRun>> SubmitToolOutputsToRunAsync(Azure.AI.Projects.ThreadRun run, System.Collections.Generic.IEnumerable<Azure.AI.Projects.ToolOutput> toolOutputs, System.Threading.CancellationToken cancellationToken = default);
abstract member SubmitToolOutputsToRunAsync : Azure.AI.Projects.ThreadRun * seq<Azure.AI.Projects.ToolOutput> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.ThreadRun>>
override this.SubmitToolOutputsToRunAsync : Azure.AI.Projects.ThreadRun * seq<Azure.AI.Projects.ToolOutput> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.ThreadRun>>
Public Overridable Function SubmitToolOutputsToRunAsync (run As ThreadRun, toolOutputs As IEnumerable(Of ToolOutput), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ThreadRun))
Parameters
- toolOutputs
- IEnumerable<ToolOutput>
The list of tool call outputs to provide as part of an output submission to an agent thread run.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
run
is null.
Applies to
SubmitToolOutputsToRunAsync(String, String, RequestContent, RequestContext)
- Source:
- AgentsClient.cs
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.Threading.Tasks.Task<Azure.Response> SubmitToolOutputsToRunAsync(string threadId, string runId, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member SubmitToolOutputsToRunAsync : string * string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.SubmitToolOutputsToRunAsync : string * string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SubmitToolOutputsToRunAsync (threadId As String, runId As String, content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)
Parameters
- threadId
- String
Identifier of the thread.
- runId
- String
Identifier of the run.
- content
- RequestContent
Serialized json contents.
- context
- RequestContext
Options that can be used to control the request.
Returns
The response returned from the service.
Exceptions
Service returned a non-success status code.
threadId
, runId
or content
is null.
threadId
or runId
is an empty string, and was expected to be non-empty.
Applies to
Azure SDK for .NET