Commit Graph

2 Commits

Author SHA1 Message Date
Devin AI
e45f7c68f9 Fix test: Use valid MCP reference in test_agent_kickoff_async_includes_platform_and_mcp_tools
- Change mcps parameter from ['test_mcp'] to ['crewai-amp:dummy'] to pass validation
- Add assertions to verify get_platform_tools and get_mcp_tools are called
- MCP references must start with 'https://' or 'crewai-amp:' per validation rules

Co-Authored-By: João <joao@crewai.com>
2025-11-18 11:31:38 +00:00
Devin AI
5715827ff7 Fix: Add multimodal tools support in Agent.kickoff() and kickoff_async()
- Add _build_runtime_tools() helper method to combine tools from multiple sources
- Fix issue #3936 where multimodal=True was not adding AddImageTool in kickoff()
- Ensure kickoff_async() includes platform, MCP, and multimodal tools for consistency
- Prevent tool duplication by deduplicating tools by name
- Avoid mutating self.tools to prevent side effects across multiple kickoff calls
- Add comprehensive tests for multimodal tool handling in both sync and async kickoff methods

Co-Authored-By: João <joao@crewai.com>
2025-11-18 11:27:00 +00:00