CodeInterpreterToolCallItemResource Constructors
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
| Name | Description |
|---|---|
| CodeInterpreterToolCallItemResource() |
Initializes a new instance of CodeInterpreterToolCallItemResource for deserialization. |
| CodeInterpreterToolCallItemResource(String, CodeInterpreterToolCallItemResourceStatus, String, String, IEnumerable<CodeInterpreterOutput>) |
Initializes a new instance of CodeInterpreterToolCallItemResource. |
| CodeInterpreterToolCallItemResource(ItemType, String, CreatedBy, IDictionary<String,BinaryData>, CodeInterpreterToolCallItemResourceStatus, String, String, IReadOnlyList<CodeInterpreterOutput>) |
Initializes a new instance of CodeInterpreterToolCallItemResource. |
CodeInterpreterToolCallItemResource()
Initializes a new instance of CodeInterpreterToolCallItemResource for deserialization.
public CodeInterpreterToolCallItemResource();
Public Sub New ()
Applies to
CodeInterpreterToolCallItemResource(String, CodeInterpreterToolCallItemResourceStatus, String, String, IEnumerable<CodeInterpreterOutput>)
Initializes a new instance of CodeInterpreterToolCallItemResource.
public CodeInterpreterToolCallItemResource(string id, Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterToolCallItemResourceStatus status, string containerId, string code, System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterOutput> outputs);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterToolCallItemResource : string * Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterToolCallItemResourceStatus * string * string * seq<Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterOutput> -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterToolCallItemResource
Public Sub New (id As String, status As CodeInterpreterToolCallItemResourceStatus, containerId As String, code As String, outputs As IEnumerable(Of CodeInterpreterOutput))
Parameters
- id
- String
- 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
id or containerId is null.
Applies to
CodeInterpreterToolCallItemResource(ItemType, String, CreatedBy, IDictionary<String,BinaryData>, CodeInterpreterToolCallItemResourceStatus, String, String, IReadOnlyList<CodeInterpreterOutput>)
Initializes a new instance of CodeInterpreterToolCallItemResource.
public CodeInterpreterToolCallItemResource(Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemType type, string id, Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy createdBy, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData, Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterToolCallItemResourceStatus status, string containerId, string code, System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterOutput> outputs);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterToolCallItemResource : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemType * string * Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy * System.Collections.Generic.IDictionary<string, BinaryData> * Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterToolCallItemResourceStatus * string * string * System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterOutput> -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.CodeInterpreterToolCallItemResource
Public Sub New (type As ItemType, id As String, createdBy As CreatedBy, serializedAdditionalRawData As IDictionary(Of String, BinaryData), status As CodeInterpreterToolCallItemResourceStatus, containerId As String, code As String, outputs As IReadOnlyList(Of CodeInterpreterOutput))
Parameters
- type
- ItemType
- id
- String
- createdBy
- CreatedBy
The information about the creator of the item.
- 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
- IReadOnlyList<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.