mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-03 08:12:39 +00:00
test: Add embedder_config to contextual memory test
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -2322,6 +2322,12 @@ def test_using_contextual_memory():
|
|||||||
agents=[math_researcher],
|
agents=[math_researcher],
|
||||||
tasks=[task1],
|
tasks=[task1],
|
||||||
memory=True,
|
memory=True,
|
||||||
|
embedder_config={
|
||||||
|
"provider": "openai",
|
||||||
|
"config": {
|
||||||
|
"api_key": "fake-api-key"
|
||||||
|
}
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
with patch.object(ContextualMemory, "build_context_for_task") as contextual_mem:
|
with patch.object(ContextualMemory, "build_context_for_task") as contextual_mem:
|
||||||
|
|||||||
Reference in New Issue
Block a user