NAME
Twilio::Rest::Knowledge::V1::Knowledge::Chunk - The Chunk resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $chunk ($client->knowledge->v1->knowledge($id)->chunks->read({}, 20)) {
...
}
DESCRIPTION
This file holds ChunkList, ChunkPage and ChunkInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
ChunkList
Returned by $client->knowledge->v1->knowledge($id)->chunks. See also Twilio::ListResource.
read
my @records = $client->knowledge->v1->knowledge($id)->chunks->read(\%options, $limit, $page_size);
List knowledge chunks. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->knowledge->v1->knowledge($id)->chunks->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->knowledge->v1->knowledge($id)->chunks->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->knowledge->v1->knowledge($id)->chunks->get_page($url);
Fetches the page at a URL given by Twilio.
ChunkPage
A Twilio::Page of ChunkInstance objects.
records_key
build_instance
Used by Twilio::Page.
ChunkInstance
See also Twilio::InstanceResource.
Its fields are:
- account_sid
-
The SID of the Account that created the Knowledge resource.
- content
-
The chunk content.
- date_created
-
The date and time in GMT when the Chunk was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date and time in GMT when the Chunk was updated specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- metadata
-
The metadata of the chunk.
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.