NAME

Twilio::Rest::Memory::V1::Recall - The Recall resource

SYNOPSIS

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

my $recall = $client->memory->v1->recall($store_id, $profile_id)->create(\%body, \%options);

DESCRIPTION

This file holds RecallList and RecallInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

RecallList

Returned by $client->memory->v1->recall($store_id, $profile_id). See also Twilio::ListResource.

create

my $recall = $client->memory->v1->recall($store_id, $profile_id)->create(\%body, \%options);

Tailored memory retrieval for agentic workloads. Supports hybrid semantic search, date ranges, and configurable result limits for different memory types. This endpoint is optimized for conversational AI and memory retrieval use cases. If a query is not specified then one is inferred from the conversation context. If neither a query nor a conversationId is provided, results are returned in most-recent order without relevance scores. Returns a RecallInstance.

%body is sent as JSON. It takes the names Twilio's API documentation uses.

Its fields are:

beginDate

Start date for filtering memories (inclusive).

communicationsLimit

Maximum number of conversational session memories to return. If omitted or set to 0, no session memories will be fetched.

conversationId

Required for session memory and query expansion.

endDate

End date for filtering memories (exclusive).

observationsLimit

Maximum number of observation memories to return. If omitted, defaults to 20. If set to 0, no observation memories will be fetched.

query

Hybrid search query for finding relevant memories. Omit to use query expansion to generate query from previous 10 communications in conversation.

relevanceThreshold

Minimum relevance score threshold for observations and summaries to be returned. Only memories with a relevance score greater than or equal to this threshold will be included in the response. This threshold only applies when results are ranked by relevance. When results are returned in most-recent order, this field has no effect.

summariesLimit

Maximum number of summary memories to return. If omitted, defaults to 5. If set to 0, no summary memories will be fetched.

The options are:

accept_encoding

Compression algorithms supported by the client (e.g., gzip, deflate, br)

content_encoding

Compression algorithm used for the request body (e.g., gzip, deflate, br) One of gzip, deflate, br or compress.

RecallInstance

See also Twilio::InstanceResource.

Its fields are:

communications

Array of recent communication context.

message

No description in the specification.

meta

Metadata about the retrieval operation.

observations

Array of observation memories.

summaries

Array of summary memories derived from observations at the end of conversations.

uri

No description in the specification.

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.