Share via


CodeInterpreterToolCallItemParam Constructors

Definition

Overloads

CodeInterpreterToolCallItemParam()

Source:
CodeInterpreterToolCallItemParam.cs

Initializes a new instance of CodeInterpreterToolCallItemParam for deserialization.

public CodeInterpreterToolCallItemParam();
Public Sub New ()

Applies to

CodeInterpreterToolCallItemParam(String, String, IEnumerable<CodeInterpreterOutput>)

Source:
CodeInterpreterToolCallItemParam.cs

Initializes a new instance of CodeInterpreterToolCallItemParam.

public CodeInterpreterToolCallItemParam(string containerId, string code, System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterOutput> outputs);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterToolCallItemParam : string * string * seq<Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterOutput> -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterToolCallItemParam
Public Sub New (containerId As String, code As String, outputs As IEnumerable(Of CodeInterpreterOutput))

Parameters

containerId
String

The ID of the container used to run the code.

code
String

The code to run, or null if not available.

outputs
IEnumerable<CodeInterpreterOutput>

The outputs generated by the code interpreter, such as logs or images. Can be null if no outputs are available. Please note CodeInterpreterOutput is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include CodeInterpreterOutputImage and CodeInterpreterOutputLogs.

Exceptions

containerId is null.

Applies to

CodeInterpreterToolCallItemParam(ItemType, IDictionary<String,BinaryData>, String, String, IList<CodeInterpreterOutput>)

Source:
CodeInterpreterToolCallItemParam.cs

Initializes a new instance of CodeInterpreterToolCallItemParam.

public CodeInterpreterToolCallItemParam(Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemType type, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData, string containerId, string code, System.Collections.Generic.IList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterOutput> outputs);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterToolCallItemParam : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemType * System.Collections.Generic.IDictionary<string, BinaryData> * string * string * System.Collections.Generic.IList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterOutput> -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterToolCallItemParam
Public Sub New (type As ItemType, serializedAdditionalRawData As IDictionary(Of String, BinaryData), containerId As String, code As String, outputs As IList(Of CodeInterpreterOutput))

Parameters

type
ItemType
serializedAdditionalRawData
IDictionary<String,BinaryData>

Keeps track of any properties unknown to the library.

containerId
String

The ID of the container used to run the code.

code
String

The code to run, or null if not available.

outputs
IList<CodeInterpreterOutput>

The outputs generated by the code interpreter, such as logs or images. Can be null if no outputs are available. Please note CodeInterpreterOutput is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include CodeInterpreterOutputImage and CodeInterpreterOutputLogs.

Applies to