Partager via


ToolOutput Constructors

Definition

Overloads

ToolOutput()

Initializes a new instance of ToolOutput.

ToolOutput(RequiredToolCall)

Initializes a new instance of ToolOutput.

ToolOutput(String)

Initializes a new instance of ToolOutput.

ToolOutput(RequiredToolCall, String)

Initializes a new instance of ToolOutput.

ToolOutput(String, String)

Initializes a new instance of ToolOutput.

ToolOutput()

Source:
ToolOutput.cs

Initializes a new instance of ToolOutput.

public ToolOutput ();
Public Sub New ()

Applies to

ToolOutput(RequiredToolCall)

Source:
ToolOutput.cs

Initializes a new instance of ToolOutput.

public ToolOutput (Azure.AI.OpenAI.Assistants.RequiredToolCall toolCall);
new Azure.AI.OpenAI.Assistants.ToolOutput : Azure.AI.OpenAI.Assistants.RequiredToolCall -> Azure.AI.OpenAI.Assistants.ToolOutput
Public Sub New (toolCall As RequiredToolCall)

Parameters

toolCall
RequiredToolCall

The tool call the output will resolve, as provided in a required action from a run.

Remarks

When using this constructor, the Output property should be set prior to submission.

Applies to

ToolOutput(String)

Source:
ToolOutput.cs

Initializes a new instance of ToolOutput.

public ToolOutput (string toolCallId);
new Azure.AI.OpenAI.Assistants.ToolOutput : string -> Azure.AI.OpenAI.Assistants.ToolOutput
Public Sub New (toolCallId As String)

Parameters

toolCallId
String

The ID of the tool call being resolved, as provided in the tool calls of a required action from a run.

Remarks

When using this constructor, the Output property should be set prior to submission.

Applies to

ToolOutput(RequiredToolCall, String)

Source:
ToolOutput.cs

Initializes a new instance of ToolOutput.

public ToolOutput (Azure.AI.OpenAI.Assistants.RequiredToolCall toolCall, string output);
new Azure.AI.OpenAI.Assistants.ToolOutput : Azure.AI.OpenAI.Assistants.RequiredToolCall * string -> Azure.AI.OpenAI.Assistants.ToolOutput
Public Sub New (toolCall As RequiredToolCall, output As String)

Parameters

toolCall
RequiredToolCall

The tool call the output will resolve, as provided in a required action from a run.

output
String

The output from the tool to be submitted.

Remarks

When using this constructor, the Output property should be set prior to submission.

Applies to

ToolOutput(String, String)

Source:
ToolOutput.cs

Initializes a new instance of ToolOutput.

public ToolOutput (string toolCallId, string output);
new Azure.AI.OpenAI.Assistants.ToolOutput : string * string -> Azure.AI.OpenAI.Assistants.ToolOutput
Public Sub New (toolCallId As String, output As String)

Parameters

toolCallId
String

The ID of the tool call being resolved, as provided in the tool calls of a required action from a run.

output
String

The output from the tool to be submitted.

Applies to