NAME

Twilio::Rest::Intelligence::V3::Version - The Version resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

for my $version ($client->intelligence->v3->versions($id)->read({}, 20)) {
  ...
}
my $version = $client->intelligence->v3->versions($id, $path_version)->fetch;

DESCRIPTION

This file holds VersionList, VersionPage, VersionContext and VersionInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

VersionList

Returned by $client->intelligence->v3->versions($id). See also Twilio::ListResource.

read

my @records = $client->intelligence->v3->versions($id)->read(\%options, $limit, $page_size);

Retrieve a paginated list of all versions for a given Language Operator. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->intelligence->v3->versions($id)->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->intelligence->v3->versions($id)->page(\%options, $page_size, $page_token);

Fetches one page, and returns a Twilio::TokenPaginationPage. This API pages by token, so there is no page number.

get_page

my $page = $client->intelligence->v3->versions($id)->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->intelligence->v3->versions($id)->get_context($path_version);

Returns a VersionContext, and makes no request.

VersionPage

A Twilio::Page of VersionInstance objects.

records_key

build_instance

Used by Twilio::Page.

VersionContext

Returned by $client->intelligence->v3->versions($id, $path_version). It makes no request until one of these methods is called.

fetch

my $version = $client->intelligence->v3->versions($id, $path_version)->fetch;

Returns a VersionInstance.

VersionInstance

See also Twilio::InstanceResource.

It has fetch, which work as they do on the context.

Its fields are:

author

One of SELF or TWILIO.

context

No description in the specification.

date_created

Timestamp of when this version was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_deprecated

Timestamp of when this version was deprecated. Present when status is DEPRECATED or RETIRED. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_retired

Timestamp of when this version was retired. Present when status is RETIRED. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

description

Description of the Language Operator further explaining its purpose.

display_name

Display name of the Language Operator describing its purpose.

id

No description in the specification.

output_format

One of TEXT, JSON or CLASSIFICATION.

output_schema

No description in the specification.

parameters

No description in the specification.

prompt

The natural language instructions used by the operator to analyze the conversation. Within the prompt, users can reference parameters using the {{parameters.[param_name]}} syntax. Parameter values are provided to the Operator by the Intelligence Configuration Rule at runtime. Note: Prompts will only be exposed for Custom Operators (author = SELF). Twilio-authored Operators (author = TWILIO) will have their prompts omitted from the API.

retirement_date

Scheduled retirement date for this version. Present when status is DEPRECATED. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

status

One of PREVIEW, ACTIVE, DEPRECATED or RETIRED.

training_examples

An array of example input/output pairs used to illustrate the intended behavior of the Language Operator. These examples help guide the model's understanding of expected input–output relationships and improve consistency during evaluation and testing. Note: Training examples will only be exposed for Custom Operators (author = SELF). Twilio-authored Operators (author = TWILIO) will have their training examples omitted from the API.

version

Numeric Operator version. Automatically incremented with each update on the resource, used to ensure integrity when updating the Operator.

CONSTRUCTORS

new

Objects here come from the methods above, so there is no need to call new directly.

LICENSE

Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.