aws / aws/bedrock-agentcore-sdk-python
Pagination discrepancy for MemorySessionManager ---> search_long_term_memories and list_long_term_memory_records
- Ngôn ngữ chính
- Python
- Star
- 761
- Fork
- 147
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 7
Mô tả
**Describe the bug**
MemorySessionManager has 2 memory listing methods named search_long_term_memories and list_long_term_memory_records
as per boto3 docs both the methods should support pagination with nextToken
i can see list_long_term_memory_records has some pagination inside it and fetches all the records in loop where as search_long_term_memories doesnt have one
both methods pagination logic should be similar as per boto3 actual methods? if yes, search_long_term_memories also needs same looping logic and fetching all records
Also as list_long_term_memory_records brings up all the records in a loop and then do the slicing as per max_results,
- what if the records are huge in number?
- Is sequential pagination will be available in future? as even if i increase max_results value to a bigger number, i will get the values from the beginning till max_result always
**Screenshots**
boto3 links:
https://docs.aws.amazon.com/boto3/latest/reference/services/bedrock-agentcore/client/retrieve_memory_records.html
https://docs.aws.amazon.com/boto3/latest/reference/services/bedrock-agentcore/client/list_memory_records.html
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với MemorySessionManager.search_long_term_memories và list_long_term_memory_records, sau đó so sánh cách chúng xử lý nextToken với tài liệu boto3 được liên kết về retrieve_memory_records và list_memory_records. Xác nhận hành vi phân trang và max_results được dự định; hoàn tất có nghĩa là cả hai phương thức đều có kết quả nhất quán, được ghi chép đầy đủ và không có ngữ nghĩa truy xuất mơ hồ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- aws, python
- Lĩnh vực
- api, backend
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100