8000 feat: Add CachePoint type definition to ContentBlock (#142) · lgigit200/sdk-python@cba7db6 · GitHub
[go: up one dir, main page]

Skip to content

Commit cba7db6

Browse files
authored
feat: Add CachePoint type definition to ContentBlock (strands-agents#142)
1 parent b8939e7 commit cba7db6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/strands/types/content.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,21 @@ class ReasoningContentBlock(TypedDict, total=False):
6060
redactedContent: bytes
6161

6262

63+
class CachePoint(TypedDict):
64+
"""A cache point configuration for optimizing conversation history.
65+
66+
Attributes:
67+
type: The type of cache point, typically "default".
68+
"""
69+
70+
type: str
71+
72+
6373
class ContentBlock(TypedDict, total=False):
6474
"""A block of content for a message that you pass to, or receive from, a model.
6575
6676
Attributes:
77+
cachePoint: A cache point configuration to optimize conversation history.
6778
document: A document to include in the message.
6879
guardContent: Contains the content to assess with the guardrail.
6980
image: Image to include in the message.
@@ -74,6 +85,7 @@ class ContentBlock(TypedDict, total=False):
7485
video: Video to include in the message.
7586
"""
7687

88+
cachePoint: CachePoint
7789
document: DocumentContent
7890
guardContent: GuardContent
7991
image: ImageContent

0 commit comments

Comments
 (0)
0