ItemCustomToolCallOutput Class

Definition

Custom tool call output.

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

Constructors

Name Description
ItemCustomToolCallOutput(String, BinaryData)

Initializes a new instance of ItemCustomToolCallOutput.

Properties

Name Description
CallId

The call ID, used to map this custom tool call output to a custom tool call.

Id

The unique ID of the custom tool call output in the OpenAI platform.

Output

The output from the custom tool call generated by your code. Can be a string or an list of output content.

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" }.

Methods

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

Explicit Interface Implementations

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

Applies to