mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
Remove terminate_on_close parameter from sse_client call in SSETransport. This parameter is only valid for streamable HTTP transport, not for SSE transport. Fixes #3938 Changes: - Remove terminate_on_close=True from sse_client() call in SSETransport.connect() - Add comprehensive unit tests for SSETransport that mock sse_client and verify correct parameters - Add error-path tests to ensure Agent._get_native_mcp_tools raises proper RuntimeError instead of UnboundLocalError when connection fails Co-Authored-By: João <joao@crewai.com>
2 lines
1 B
Python
2 lines
1 B
Python
|