list_memory_records
¶
list_memory_records(
memory_id: MemoryId,
*,
config_overrides: Optional[BedrockAgentCoreClientConfig] = None,
namespace: Optional[Namespace] = None,
namespace_path: Optional[Namespace] = None,
memory_strategy_id: Optional[MemoryStrategyId] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
metadata_filters: Optional[MemoryMetadataFilterList] = None,
) -> ListMemoryRecordsOutput
Lists memory records in an AgentCore Memory resource based on specified criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.
To use this operation, you must have the bedrock-agentcore:ListMemoryRecords permission.
Parameters:
-
memory_id(MemoryId) –The identifier of the AgentCore Memory resource for which to list memory records.
-
namespace(Optional[Namespace], default:None) –The namespace prefix to filter memory records by. Returns all memory records in namespaces that start with the provided prefix. Either
namespaceornamespacePathis required. -
namespace_path(Optional[Namespace], default:None) –Use namespacePath for hierarchical retrievals. Return all memory records where namespace falls under the same parent hierarchy. Either
namespaceornamespacePathis required. -
memory_strategy_id(Optional[MemoryStrategyId], default:None) –The memory strategy identifier to filter memory records by. If specified, only memory records with this strategy ID are returned.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in a single call. The default value is 20.
-
next_token(Optional[PaginationToken], default:None) –The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
-
metadata_filters(Optional[MemoryMetadataFilterList], default:None) –A list of metadata filter expressions to scope the returned memory records.
Raises:
-
AccessDeniedException–The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
-
InvalidInputException–The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
-
ResourceNotFoundException–The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
-
ServiceException–The service encountered an internal error. Try your request again later.
-
ServiceQuotaExceededException–The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
-
ThrottledException–The request was denied due to request throttling. Reduce the frequency of requests and try again.
-
ValidationException–The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore/_services/bedrock_agent_core.py
4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 | |