AgentInvocationsApiDispatchPayload Class

Definition

A manual payload used to test an invocations API routine dispatch.

public class AgentInvocationsApiDispatchPayload : Azure.AI.Projects.RoutineDispatchPayload, System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AgentInvocationsApiDispatchPayload>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AgentInvocationsApiDispatchPayload>
type AgentInvocationsApiDispatchPayload = class
    inherit RoutineDispatchPayload
    interface IJsonModel<AgentInvocationsApiDispatchPayload>
    interface IPersistableModel<AgentInvocationsApiDispatchPayload>
Public Class AgentInvocationsApiDispatchPayload
Inherits RoutineDispatchPayload
Implements IJsonModel(Of AgentInvocationsApiDispatchPayload), IPersistableModel(Of AgentInvocationsApiDispatchPayload)
Inheritance
AgentInvocationsApiDispatchPayload
Implements

Constructors

Name Description
AgentInvocationsApiDispatchPayload(BinaryData)

Initializes a new instance of AgentInvocationsApiDispatchPayload.

Properties

Name Description
Input

The JSON value sent as the complete downstream invocations input. The value is passed through as-is and can be an object, string, number, boolean, array, or null.

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).

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<AgentInvocationsApiDispatchPayload>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<AgentInvocationsApiDispatchPayload>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IJsonModel<RoutineDispatchPayload>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from RoutineDispatchPayload)
IJsonModel<RoutineDispatchPayload>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from RoutineDispatchPayload)
IPersistableModel<AgentInvocationsApiDispatchPayload>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<AgentInvocationsApiDispatchPayload>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<AgentInvocationsApiDispatchPayload>.Write(ModelReaderWriterOptions)
IPersistableModel<RoutineDispatchPayload>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from RoutineDispatchPayload)
IPersistableModel<RoutineDispatchPayload>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from RoutineDispatchPayload)
IPersistableModel<RoutineDispatchPayload>.Write(ModelReaderWriterOptions) (Inherited from RoutineDispatchPayload)

Applies to