A2AToolCallOutput Class

Definition

The output of an A2A (Agent-to-Agent) tool call.

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

Constructors

Name Description
A2AToolCallOutput(String, String, ToolCallStatus, String)

Initializes a new instance of A2AToolCallOutput.

Properties

Name Description
AgentReference

The agent that created the item.

(Inherited from OutputItem)
CallId

The unique ID of the tool call generated by the model.

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

Gets or sets the Id.

Name

The name of the A2A agent card that was called.

Output

The output from the A2A tool call.

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

ResponseId

The response on which the item is created.

(Inherited from OutputItem)
Status

The status of the tool call.

Methods

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

Explicit Interface Implementations

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

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