fix: Complete hosted tools implementation with remaining changes

- Finalize base_agent.py and agent_utils.py updates
- Include comprehensive test suite for hosted tools
- Update lock file with dependencies

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2025-08-18 14:03:52 +00:00
parent be09b519c4
commit d8eaadca47
4 changed files with 3179 additions and 3472 deletions

View File

@@ -11,7 +11,6 @@ from crewai.agents.parser import (
)
from crewai.llm import LLM
from crewai.llms.base_llm import BaseLLM
from crewai.tools import BaseTool as CrewAITool
from crewai.tools.base_tool import BaseTool
from crewai.tools.structured_tool import CrewStructuredTool
from crewai.tools.tool_types import ToolResult
@@ -27,7 +26,7 @@ console = Console()
def parse_tools(tools: List[Union[BaseTool, dict]]) -> List[Union[CrewStructuredTool, dict]]:
"""Parse tools to be used for the task."""
tools_list = []
tools_list: List[Union[CrewStructuredTool, dict]] = []
for tool in tools:
if isinstance(tool, dict):