Issues with Longterm Memory #2494
Shanmukha9999
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When i am using Azure based models longterm memory and short term memory are getting error, as it creating the tables with no errors but data is not being inserted to the sqlite table.
pls look into the code and error
from chromadb.utils.embedding_functions import OpenAIEmbeddingFunction
from crewai import Crew, Agent, Task, Process
from crewai.memory.storage.ltm_sqlite_storage import LTMSQLiteStorage
from crewai.memory import LongTermMemory, ShortTermMemory, EntityMemory
my_crew = Crew(
tasks=[research_task], # Tasks to be delegated and executed under the manager's supervision
agents=[researcher],
process=Process.sequential,
memory=True,
verbose=True,
embedder={
"provider": "azure",
"config": {
"api_key": "*",
"api_base": "",
"api_version": "2024-02-01",
"model_name": 'text-embedding-3-small',
"type":"Azure"
}
},
long_term_memory=LongTermMemory(
storage=LTMSQLiteStorage(
db_path="./longterm3/long_term_memory_storage.db"
)
)
)
and the error is
ERROR:root:Error during short_term search: APIStatusError.init() missing 2 required keyword-only arguments: 'response' and 'body'
ERROR:root:Error during entities search: APIStatusError.init() missing 2 required keyword-only arguments: 'response' and 'body'
Agent: Research Analyst
Task:
Agent: Research Analyst
Thought: Thought: To gather comprehensive and relevant information about AI Agents in 2025, I need to search for the latest data and trends using the bing search tool.
Using tool: bing search tool
Tool Input:
"{"search_query": "AI Agents 2025 trends and developments"}" .......
ERROR:root:Error during short_term save: APIStatusError.init() missing 2 required keyword-only arguments: 'response' and 'body'
Failed to add to long term memory: Failed to convert text into a Pydantic model due to the following validation error: 1 validation error for TaskEvaluation
Invalid JSON: expected value at line 1 column 1 [type=json_invalid, input_value='
json\n{\n "feedback"... }\n ]\n }\n}\n
', input_type=str]For further information visit https://errors.pydantic.dev/2.10/v/json_invalid
Beta Was this translation helpful? Give feedback.
All reactions