We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
id
custom_metadata
MemoryEntry
1 parent b2c45f8 commit 4dd28a3Copy full SHA for 4dd28a3
src/google/adk/memory/memory_entry.py
@@ -15,10 +15,12 @@
15
16
from __future__ import annotations
17
18
+from typing import Any
19
from typing import Optional
20
21
from google.genai import types
22
from pydantic import BaseModel
23
+from pydantic import Field
24
25
26
class MemoryEntry(BaseModel):
@@ -27,6 +29,12 @@ class MemoryEntry(BaseModel):
27
29
content: types.Content
28
30
"""The main content of the memory."""
31
32
+ custom_metadata: dict[str, Any] = Field(default_factory=dict)
33
+ """Optional custom metadata associated with the memory."""
34
+
35
+ id: Optional[str] = None
36
+ """The unique identifier of the memory."""
37
38
author: Optional[str] = None
39
"""The author of the memory."""
40
0 commit comments