mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
Fix linting and type checking issues
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -58,7 +58,7 @@ class ContextualMemory:
|
|||||||
Fetches historical data or insights from LTM that are relevant to the task's description and expected_output,
|
Fetches historical data or insights from LTM that are relevant to the task's description and expected_output,
|
||||||
formatted as bullet points.
|
formatted as bullet points.
|
||||||
"""
|
"""
|
||||||
ltm_results = self.ltm.search(task, latest_n=2)
|
ltm_results = self.ltm.search(query=task, limit=2)
|
||||||
if not ltm_results:
|
if not ltm_results:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
import pytest
|
|
||||||
from typing import Any, Dict, List
|
from typing import Any, Dict, List
|
||||||
|
|
||||||
from crewai.crew import Crew
|
import pytest
|
||||||
|
|
||||||
from crewai.agent import Agent
|
from crewai.agent import Agent
|
||||||
from crewai.memory.storage.interface import Storage
|
from crewai.crew import Crew
|
||||||
from crewai.memory.short_term.short_term_memory import ShortTermMemory
|
|
||||||
from crewai.memory.long_term.long_term_memory import LongTermMemory
|
|
||||||
from crewai.memory.entity.entity_memory import EntityMemory
|
from crewai.memory.entity.entity_memory import EntityMemory
|
||||||
|
from crewai.memory.long_term.long_term_memory import LongTermMemory
|
||||||
|
from crewai.memory.short_term.short_term_memory import ShortTermMemory
|
||||||
|
from crewai.memory.storage.interface import Storage
|
||||||
from crewai.memory.user.user_memory import UserMemory
|
from crewai.memory.user.user_memory import UserMemory
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user