From 62d2e7a9f1eb1ceb7c9f40e568b6b081af50d6a9 Mon Sep 17 00:00:00 2001 From: Nikolay Samokhvalov Date: Wed, 27 Mar 2024 23:19:14 -0700 Subject: [PATCH] Typo fix tool_paramters-> tool_parameters (#47) --- en/tutorials/quick-tool-integration.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/en/tutorials/quick-tool-integration.md b/en/tutorials/quick-tool-integration.md index 042fc0a..264146f 100644 --- a/en/tutorials/quick-tool-integration.md +++ b/en/tutorials/quick-tool-integration.md @@ -176,13 +176,13 @@ from typing import Any, Dict, List, Union class GoogleSearchTool(BuiltinTool): def _invoke(self, user_id: str, - tool_paramters: Dict[str, Any], + tool_parameters: Dict[str, Any], ) -> Union[ToolInvokeMessage, List[ToolInvokeMessage]]: """ invoke tools """ - query = tool_paramters['query'] - result_type = tool_paramters['result_type'] + query = tool_parameters['query'] + result_type = tool_parameters['result_type'] api_key = self.runtime.credentials['serpapi_api_key'] # TODO: search with serpapi result = SerpAPI(api_key).run(query, result_type=result_type) @@ -194,7 +194,7 @@ class GoogleSearchTool(BuiltinTool): #### Parameters -The overall logic of the tool is in the `_invoke` method, this method accepts two parameters: `user_id` and `tool_paramters`, which represent the user ID and tool parameters respectively +The overall logic of the tool is in the `_invoke` method, this method accepts two parameters: `user_id` and `tool_parameters`, which represent the user ID and tool parameters respectively #### Return Data @@ -228,7 +228,7 @@ class GoogleProvider(BuiltinToolProviderController): } ).invoke( user_id='', - tool_paramters={ + tool_parameters={ "query": "test", "result_type": "link" },