File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2222)
2323agent .print_response ("How many people live in France?" )
2424agent .print_response ("What is their national anthem called?" )
25- agent .print_response ("What have we been talking about?" )
25+ agent .print_response ("What have we been talking about?" )
Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ async def _get_or_create_collection(
282282 return None
283283 # Note: Motor doesn't have sync create_index, so we use it as-is
284284 # The indexes are created in the background
285- create_collection_indexes (collection , collection_type )
285+ create_collection_indexes (collection , collection_type ) # type: ignore
286286 setattr (self , f"_{ collection_name } _initialized" , True )
287287 log_debug (f"Initialized collection '{ collection_name } '" )
288288 else :
@@ -1088,8 +1088,8 @@ async def get_user_memory_stats(
10881088 # Apply pagination
10891089 if limit is not None :
10901090 if page is not None :
1091- pipeline .append ({"$skip" : (page - 1 ) * limit })
1092- pipeline .append ({"$limit" : limit })
1091+ pipeline .append ({"$skip" : (page - 1 ) * limit }) # type: ignore
1092+ pipeline .append ({"$limit" : limit }) # type: ignore
10931093
10941094 results = await collection .aggregate (pipeline ).to_list (length = None )
10951095
@@ -1584,7 +1584,7 @@ async def calculate_metrics(self) -> Optional[list[dict]]:
15841584 metrics_records .append (metrics_record )
15851585
15861586 if metrics_records :
1587- results = bulk_upsert_metrics (collection , metrics_records )
1587+ results = bulk_upsert_metrics (collection , metrics_records ) # type: ignore
15881588
15891589 return results
15901590
Original file line number Diff line number Diff line change @@ -8501,7 +8501,7 @@ async def aget_relevant_docs_from_knowledge(
85018501 log_warning ("No valid filters remain after validation. Search will proceed without filters." )
85028502
85038503 if self .knowledge_retriever is not None and callable (self .knowledge_retriever ):
8504- from inspect import signature
8504+ from inspect import isawaitable , signature
85058505
85068506 try :
85078507 sig = signature (self .knowledge_retriever )
@@ -8511,7 +8511,7 @@ async def aget_relevant_docs_from_knowledge(
85118511 if "filters" in sig .parameters :
85128512 knowledge_retriever_kwargs ["filters" ] = filters
85138513 knowledge_retriever_kwargs .update ({"query" : query , "num_documents" : num_documents , ** kwargs })
8514-
8514+
85158515 result = self .knowledge_retriever (** knowledge_retriever_kwargs )
85168516
85178517 if isawaitable (result ):
You can’t perform that action at this time.
0 commit comments