chore: docstring not match the function parameter (#17162)

This commit is contained in:
非法操作 2025-03-31 13:19:15 +08:00 • committed by GitHub
commit 44f911a0a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
47 changed files with 60 additions and 95 deletions

View file

@ -153,7 +153,7 @@ class BuiltinToolProviderController(ToolProviderController):
"""
validate the credentials of the provider
:param tool_name: the name of the tool, defined in `get_tools`
:param user_id: use id
:param credentials: the credentials of the tool
"""
# validate credentials format
@ -167,7 +167,7 @@ class BuiltinToolProviderController(ToolProviderController):
"""
validate the credentials of the provider
:param tool_name: the name of the tool, defined in `get_tools`
:param user_id: use id
:param credentials: the credentials of the tool
"""
pass

View file

@ -28,9 +28,7 @@ class BuiltinTool(Tool):
def fork_tool_runtime(self, runtime: ToolRuntime) -> "BuiltinTool":
"""
fork a new tool with meta data
:param meta: the meta data of a tool call processing, tenant_id is required
fork a new tool with metadata
:return: the new tool
"""
return self.__class__(
@ -43,7 +41,7 @@ class BuiltinTool(Tool):
"""
invoke model
:param model_config: the model config
:param user_id: the user id
:param prompt_messages: the prompt messages
:param stop: the stop words
:return: the model result
@ -64,7 +62,6 @@ class BuiltinTool(Tool):
"""
get max tokens
:param model_config: the model config
:return: the max tokens
"""
if self.runtime is None: