Fix CI failures: resolve type checker errors and test failures

- Fix type checker errors in reasoning_handler.py: handle Union[str, dict] response types
- Fix type checker error in crew_chat.py: convert final_response to string for dict
- Update test_task_callback_returns_task_output to include completion_metadata field
- Fix integration test attribute access in test_lite_agent_with_xml_extraction

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2025-06-24 05:29:55 +00:00
parent a1ebdb125b
commit 14629bb87a
4 changed files with 19 additions and 10 deletions

View File

@@ -79,7 +79,7 @@ class TestIntegrationLLMFeatures:
result = lite_agent.kickoff("Analyze this problem")
thinking_content = extract_xml_content(result.raw, "thinking")
thinking_content = extract_xml_content(result, "thinking")
assert thinking_content is not None
assert "step by step" in thinking_content
assert "requirements" in thinking_content