Freigeben über


OutputItemCodeInterpreterToolCall Class

Definition

Code interpreter tool call.

public class OutputItemCodeInterpreterToolCall : Azure.AI.AgentServer.Responses.Models.OutputItem, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Responses.Models.OutputItemCodeInterpreterToolCall>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Responses.Models.OutputItemCodeInterpreterToolCall>
type OutputItemCodeInterpreterToolCall = class
    inherit OutputItem
    interface IJsonModel<OutputItemCodeInterpreterToolCall>
    interface IPersistableModel<OutputItemCodeInterpreterToolCall>
Public Class OutputItemCodeInterpreterToolCall
Inherits OutputItem
Implements IJsonModel(Of OutputItemCodeInterpreterToolCall), IPersistableModel(Of OutputItemCodeInterpreterToolCall)
Inheritance
OutputItemCodeInterpreterToolCall
Implements

Constructors

Name Description
OutputItemCodeInterpreterToolCall(String, OutputItemCodeInterpreterToolCallStatus, String, String, IEnumerable<BinaryData>)

Initializes a new instance of OutputItemCodeInterpreterToolCall.

Properties

Name Description
AgentReference

The agent that created the item.

(Inherited from OutputItem)
Code

Gets or sets the Code.

ContainerId

The ID of the container used to run the code.

CreatedBy

The information about the creator of the item

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

<remarks> Supported types:

</remarks>

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

(Inherited from OutputItem)
Id

The unique ID of the code interpreter tool call.

Outputs

Gets or sets the Outputs.

To assign an object to the element of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

<remarks> Supported types:

</remarks>

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

ResponseId

The response on which the item is created.

(Inherited from OutputItem)
Status

The status of the code interpreter tool call. Valid values are in_progress, completed, incomplete, interpreting, and failed.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<OutputItem>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from OutputItem)
IJsonModel<OutputItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from OutputItem)
IJsonModel<OutputItemCodeInterpreterToolCall>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<OutputItemCodeInterpreterToolCall>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<OutputItem>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from OutputItem)
IPersistableModel<OutputItem>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from OutputItem)
IPersistableModel<OutputItem>.Write(ModelReaderWriterOptions) (Inherited from OutputItem)
IPersistableModel<OutputItemCodeInterpreterToolCall>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<OutputItemCodeInterpreterToolCall>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<OutputItemCodeInterpreterToolCall>.Write(ModelReaderWriterOptions)

Extension Methods

Name Description
GetId(OutputItem)

Gets the Id property from an OutputItem. Uses direct type checks for known subclasses; falls back to JSON serialization for unrecognized types.

Applies to