Skip to content

Commit 1f01174

Browse files
Formatting
1 parent cb9e4d1 commit 1f01174

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/google/adk/integrations/firestore/firestore_memory_service.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ def __init__(
7272
else:
7373
self.client = client
7474
self.events_collection = events_collection or DEFAULT_EVENTS_COLLECTION
75-
self.memories_collection = memories_collection or DEFAULT_MEMORIES_COLLECTION
75+
self.memories_collection = (
76+
memories_collection or DEFAULT_MEMORIES_COLLECTION
77+
)
7678
self.stop_words = (
7779
stop_words if stop_words is not None else DEFAULT_STOP_WORDS
7880
)
@@ -103,7 +105,9 @@ async def add_session_to_memory(self, session: Session) -> None:
103105
"userId": session.user_id,
104106
"keywords": list(keywords),
105107
"author": event.author,
106-
"content": event.content.model_dump(exclude_none=True, mode="json"),
108+
"content": event.content.model_dump(
109+
exclude_none=True, mode="json"
110+
),
107111
"timestamp": event.timestamp,
108112
},
109113
)
@@ -135,6 +139,7 @@ async def _search_by_keyword(
135139
if data and "content" in data:
136140
try:
137141
from google.genai import types
142+
138143
content = types.Content.model_validate(data["content"])
139144
entries.append(
140145
MemoryEntry(

0 commit comments

Comments
 (0)