mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
fix: remove @abstractmethod decorator from sanitize_tool_name
This commit is contained in:
@@ -2,9 +2,10 @@
|
|||||||
|
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
from typing import Any, TypedDict, Unpack
|
from typing import Any, TypedDict
|
||||||
|
|
||||||
from pydantic import ConfigDict, PrivateAttr
|
from pydantic import ConfigDict, PrivateAttr
|
||||||
|
from typing_extensions import Unpack
|
||||||
|
|
||||||
from crewai.agent import BaseAgent
|
from crewai.agent import BaseAgent
|
||||||
from crewai.knowledge.knowledge import Knowledge
|
from crewai.knowledge.knowledge import Knowledge
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ class BaseToolAdapter(ABC):
|
|||||||
"""
|
"""
|
||||||
return self.converted_tools
|
return self.converted_tools
|
||||||
|
|
||||||
@abstractmethod
|
|
||||||
def sanitize_tool_name(self, tool_name: str) -> str:
|
def sanitize_tool_name(self, tool_name: str) -> str:
|
||||||
"""Sanitize tool name for API compatibility.
|
"""Sanitize tool name for API compatibility.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user