feat: Add id and custom_metadata fields to MemoryEntry

PiperOrigin-RevId: 833581243
This commit is contained in:
Google Team Member
2025-11-17 18:33:35 -08:00
committed by Copybara-Service
parent b2c45f8d91
commit 4dd28a3970
+8
View File
@@ -15,10 +15,12 @@
from __future__ import annotations
from typing import Any
from typing import Optional
from google.genai import types
from pydantic import BaseModel
from pydantic import Field
class MemoryEntry(BaseModel):
@@ -27,6 +29,12 @@ class MemoryEntry(BaseModel):
content: types.Content
"""The main content of the memory."""
custom_metadata: dict[str, Any] = Field(default_factory=dict)
"""Optional custom metadata associated with the memory."""
id: Optional[str] = None
"""The unique identifier of the memory."""
author: Optional[str] = None
"""The author of the memory."""