Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/bedrock_agentcore/memory/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ def list_events(
"memoryId": memory_id,
"actorId": actor_id,
"sessionId": session_id,
"maxResults": min(100, max_results - len(all_events)),
"maxResults": 100,
"includePayloads": include_payload,
}

Expand Down
4 changes: 2 additions & 2 deletions tests/bedrock_agentcore/memory/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def test_list_events_with_pagination():
# Check second call parameters
second_call = mock_gmdp.list_events.call_args_list[1]
assert second_call[1]["nextToken"] == "token-123"
assert second_call[1]["maxResults"] == 50
assert second_call[1]["maxResults"] == 100


def test_list_events_with_branch_filter():
Expand Down Expand Up @@ -662,7 +662,7 @@ def test_list_events_max_results_limit():

# Verify API was called with correct max_results
args, kwargs = mock_gmdp.list_events.call_args
assert kwargs["maxResults"] == 25
assert kwargs["maxResults"] == 100


def test_list_memories():
Expand Down
Loading