Language

CreateTelephonyCallJobContent Class

Definition

A request to create one durable direct outbound call job.

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

Constructors

Name Description
CreateTelephonyCallJobContent(TelephonyOutboundDestination, String, String)

Initializes a new instance of CreateTelephonyCallJobContent.

Properties

Name Description
ConnectionName

The Foundry connection name in the current project used to originate the call. Its category selects Twilio or Azure Communication Services / Teams Phone Extension. No inbound telephony binding is required.

Destination

The phone destination to call.

Purpose

An optional customer-declared purpose for placing the call.

RetryPolicy

The provider-attempt retry policy. Omit it for one attempt with no retry delay.

Schedule

The optional execution window.

Source

The caller identity used to originate the call. For a Twilio connection, provide an authorized E.164 phone number. For an Azure Communication Services / Teams Phone Extension connection, provide the Teams Resource Account object ID. The identity type is inferred from the connection category; originating does not change inbound routing.

StructuredInputs

Structured input values available to the agent and greeting for this call. Agent-declared inputs are validated against their schemas; omitted optional inputs may use their Agent-defined default values, while omitted required inputs are rejected. Additional inputs remain available as dynamic template variables.

To assign an object to the value of 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)

Operators

Name Description
Implicit(CreateTelephonyCallJobContent to BinaryContent)

Explicit Interface Implementations

Name Description
IJsonModel<CreateTelephonyCallJobContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<CreateTelephonyCallJobContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<CreateTelephonyCallJobContent>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<CreateTelephonyCallJobContent>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<CreateTelephonyCallJobContent>.Write(ModelReaderWriterOptions)

Applies to