fix: Fix typo in credentials field name (#2155)

This commit is contained in:
Yeuoly 2024-01-24 12:00:34 +08:00 • committed by GitHub
commit 57024614bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 51 additions and 51 deletions

View file

@ -30,7 +30,7 @@ class ApiTool(Tool):
runtime=Tool.Runtime(**meta)
)
def validate_credentials(self, credentails: Dict[str, Any], parameters: Dict[str, Any], format_only: bool = False) -> None:
def validate_credentials(self, credentials: Dict[str, Any], parameters: Dict[str, Any], format_only: bool = False) -> None:
"""
validate the credentials for Api tool
"""

View file

@ -88,7 +88,7 @@ class DatasetRetrieverTool(Tool):
return self.create_text_message(text=result)
def validate_credentials(self, credentails: Dict[str, Any], parameters: Dict[str, Any]) -> None:
def validate_credentials(self, credentials: Dict[str, Any], parameters: Dict[str, Any]) -> None:
"""
validate the credentials for dataset retriever tool
"""

View file

@ -228,11 +228,11 @@ class Tool(BaseModel, ABC):
def _invoke(self, user_id: str, tool_paramters: Dict[str, Any]) -> Union[ToolInvokeMessage, List[ToolInvokeMessage]]:
pass
def validate_credentials(self, credentails: Dict[str, Any], parameters: Dict[str, Any]) -> None:
def validate_credentials(self, credentials: Dict[str, Any], parameters: Dict[str, Any]) -> None:
"""
validate the credentials
:param credentails: the credentials
:param credentials: the credentials
:param parameters: the parameters
"""
pass