chore: docstring not match the function parameter (#17162)
This commit is contained in:
parent
32527b26d5
commit
44f911a0a8
47 changed files with 60 additions and 95 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue