mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
fix: run last llm call as structured output if passed
This commit is contained in:
@@ -203,6 +203,7 @@ def clear_event_bus_handlers(setup_test_environment):
|
||||
from crewai.experimental.evaluation.evaluation_listener import (
|
||||
EvaluationTraceCallback,
|
||||
)
|
||||
from crewai.rag.config.utils import clear_rag_config
|
||||
|
||||
yield
|
||||
|
||||
@@ -215,6 +216,9 @@ def clear_event_bus_handlers(setup_test_environment):
|
||||
callback.current_agent_id = None
|
||||
callback.current_task_id = None
|
||||
|
||||
# Clear RAG config to prevent ChromaDB state from persisting across tests
|
||||
clear_rag_config()
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def vcr_config(request) -> dict:
|
||||
|
||||
Reference in New Issue
Block a user