Files
crewAI/lib
Devin AI beaf862941 fix: use _extract_stop_reason to safely handle non-string stop_reason values
MagicMock objects (and other non-Anthropic responses) can return non-string
values for getattr(response, 'stop_reason', None). Add a typed extraction
helper that returns None unless the value is actually a string, preventing
Pydantic validation errors in LLMCallCompletedEvent.

Co-Authored-By: João <joao@crewai.com>
2026-03-27 20:38:36 +00:00
..
2026-03-27 11:26:04 +08:00