AgentsClient.SubmitToolOutputsToRun 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
SubmitToolOutputsToRun(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'. |
SubmitToolOutputsToRun(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'. |
SubmitToolOutputsToRun(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 Azure.Response<Azure.AI.Projects.ThreadRun> SubmitToolOutputsToRun(Azure.AI.Projects.ThreadRun run, System.Collections.Generic.IEnumerable<Azure.AI.Projects.ToolOutput> toolOutputs, System.Threading.CancellationToken cancellationToken = default);
abstract member SubmitToolOutputsToRun : Azure.AI.Projects.ThreadRun * seq<Azure.AI.Projects.ToolOutput> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Projects.ThreadRun>
override this.SubmitToolOutputsToRun : Azure.AI.Projects.ThreadRun * seq<Azure.AI.Projects.ToolOutput> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Projects.ThreadRun>
Public Overridable Function SubmitToolOutputsToRun (run As ThreadRun, toolOutputs As IEnumerable(Of ToolOutput), Optional cancellationToken As CancellationToken = Nothing) As 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
SubmitToolOutputsToRun(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 Azure.Response SubmitToolOutputsToRun(string threadId, string runId, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member SubmitToolOutputsToRun : string * string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.SubmitToolOutputsToRun : string * string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function SubmitToolOutputsToRun (threadId As String, runId As String, content As RequestContent, Optional context As RequestContext = Nothing) As 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