View a markdown version of this page

SearchCriteria - Amazon Bedrock AgentCore Data Plane
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

SearchCriteria

Contains search criteria for retrieving memory records.

Contents

searchQuery

The search query to use for finding relevant memory records.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 10000.

Required: Yes

memoryStrategyId

The memory strategy identifier to filter memory records by.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 100.

Pattern: [a-zA-Z0-9][a-zA-Z0-9-_]*

Required: No

metadataFilters

Filters to apply to metadata associated with a memory.

Type: Array of MemoryMetadataFilterExpression objects

Array Members: Minimum number of 1 item. Maximum number of 5 items.

Required: No

topK

The maximum number of top-scoring memory records to return. This value is used for semantic search ranking.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: