chore: fix typos

This commit is contained in:
co63oc
2025-09-24 10:45:12 +08:00
parent f3a1fc1a4c
commit 9b33cf067d
6 changed files with 7 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ class GoogleSearchTool(Tool):
Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search.
Note:
You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries).
You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries).
"""
serper_api_key: Optional[str] = Field(default_factory=lambda: get_from_env("SERPER_API_KEY"))

View File

@@ -174,7 +174,7 @@ def service_run_async(service_id: str, params: dict, saved: bool = True):
Returns a dict containing two keys: success and result.
success: This key holds a boolean value indicating the task was
successfully or not.
request_id: Stand for a single request taski, can be used in
request_id: Stand for a single request task id, can be used in
service_run_result api to get the result of async task.
"""
params = {} if params is None else params

View File

@@ -14,7 +14,7 @@ POST_FORK_QUEUE: List[FunctionWithArgs] = []
def add_post_fork(func: Callable, *args: Any, **kwargs: Any) -> None:
"""
Add funcs and parameters into a waiting list, all of them will be executed
Add func and parameters into a waiting list, all of them will be executed
after gunicorn worker child processes have been forked, or before flask
main app start if you work without gunicorn.
"""

View File

@@ -121,7 +121,7 @@ class RequestTask:
if self.saved:
self.update_request_do(force=True)
except Exception as e:
LOGGER.error("request task execute Fail: " + str(e) + traceback.format_exc())
LOGGER.error("Request task execute failed: " + str(e) + traceback.format_exc())
if self.saved:
self.__request_do__.result['result'] = {"error_msg": str(e)}
self.next_state(TaskStateEnum.FAIL)
@@ -162,7 +162,7 @@ class RequestTask:
if self.saved:
self.update_request_do(force=True)
except Exception as e:
LOGGER.error("request task execute Fail: " + str(e) + traceback.format_exc())
LOGGER.error("Request task execute failed: " + str(e) + traceback.format_exc())
if self.saved:
self.__request_do__.result['result'] = {"error_msg": str(e)}
self.next_state(TaskStateEnum.FAIL)

View File

@@ -64,7 +64,7 @@ class AgentUniverseService(agentuniverse_service_pb2_grpc.AgentUniverseService):
Returns agentuniverse_service_pb2.AgentServiceResponse:
success: This key holds a boolean value indicating the task was
successfully or not.
request_id: Stand for a single request taski, can be used in
request_id: Stand for a single request task id, can be used in
service_run_result api to get the result of async task.
"""
service_result = service_run_async(

View File

@@ -56,7 +56,7 @@ def service_run_async(saved: bool, params: str, service_id: str):
Returns a dict containing two keys: success and request_id.
success: This key holds a boolean value indicating the task was
successfully or not.
request_id: Stand for a single request taski, can be used in
request_id: Stand for a single request task id, can be used in
service_run_result api to get the result of async task.
"""
if params and params.strip():