You've already forked adk-python
mirror of
https://github.com/encounter/adk-python.git
synced 2026-03-30 10:57:20 -07:00
feat: Add id and custom_metadata fields to MemoryEntry
PiperOrigin-RevId: 833581243
This commit is contained in:
committed by
Copybara-Service
parent
b2c45f8d91
commit
4dd28a3970
@@ -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."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user