Skip to content

Commit 64d81de

Browse files
author
AWS
committed
Amazon Bedrock AgentCore Update: Added the ability to filter out empty sessions when listing sessions. Customers can now retrieve only sessions that still contain events, eliminating the need to check each session individually. No changes required for existing integrations.
1 parent 01d0b93 commit 64d81de

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Bedrock AgentCore",
4+
"contributor": "",
5+
"description": "Added the ability to filter out empty sessions when listing sessions. Customers can now retrieve only sessions that still contain events, eliminating the need to check each session individually. No changes required for existing integrations."
6+
}

services/bedrockagentcore/src/main/resources/codegen-resources/service-2.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1926,6 +1926,11 @@
19261926
},
19271927
"documentation":"<p>Contains information about an event in an AgentCore Memory resource.</p>"
19281928
},
1929+
"EventFilterCondition":{
1930+
"type":"string",
1931+
"documentation":"<p>The condition to use for filtering sessions by events.</p>",
1932+
"enum":["HAS_EVENTS"]
1933+
},
19291934
"EventId":{
19301935
"type":"string",
19311936
"pattern":"[0-9]+#[a-fA-F0-9]+"
@@ -3356,6 +3361,10 @@
33563361
"nextToken":{
33573362
"shape":"PaginationToken",
33583363
"documentation":"<p>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.</p>"
3364+
},
3365+
"filter":{
3366+
"shape":"SessionFilter",
3367+
"documentation":"<p>Filter criteria to apply when listing sessions.</p>"
33593368
}
33603369
}
33613370
},
@@ -4239,6 +4248,16 @@
42394248
},
42404249
"exception":true
42414250
},
4251+
"SessionFilter":{
4252+
"type":"structure",
4253+
"members":{
4254+
"eventFilter":{
4255+
"shape":"EventFilterCondition",
4256+
"documentation":"<p>The event filter condition to apply. Use this to filter sessions based on event presence.</p>"
4257+
}
4258+
},
4259+
"documentation":"<p>Contains filter criteria for listing sessions.</p>"
4260+
},
42424261
"SessionId":{
42434262
"type":"string",
42444263
"max":100,

0 commit comments

Comments
 (0)