fix: run last llm call as structured output if passed

This commit is contained in:
Greyson Lalonde
2025-11-05 07:17:23 -05:00
parent 7380f7b794
commit 07ac8fb088
41 changed files with 17859 additions and 16272 deletions

View File

@@ -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: