File tree Expand file tree Collapse file tree
src/google/adk/integrations/firestore Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222from typing import Optional
2323from typing import TYPE_CHECKING
2424
25+ from google .cloud .firestore_v1 .base_query import FieldFilter
2526from typing_extensions import override
2627
2728from ...events .event import Event
@@ -289,9 +290,9 @@ async def _search_by_keyword(
289290 """Searches for events matching a single keyword."""
290291 query = (
291292 self .client .collection_group (self .events_collection )
292- .where ("appName" , "==" , app_name )
293- .where ("userId" , "==" , user_id )
294- .where ("keywords" , "array_contains" , keyword )
293+ .where (filter = FieldFilter ( "appName" , "==" , app_name ) )
294+ .where (filter = FieldFilter ( "userId" , "==" , user_id ) )
295+ .where (filter = FieldFilter ( "keywords" , "array_contains" , keyword ) )
295296 )
296297
297298 docs = await query .get ()
You can’t perform that action at this time.
0 commit comments