Skip to content

Commit 0ca6adb

Browse files
committed
rename function
1 parent 5d97a2c commit 0ca6adb

File tree

1 file changed

+2
-2
lines changed
  • packages/toolbox-core/src/toolbox_core

1 file changed

+2
-2
lines changed

packages/toolbox-core/src/toolbox_core/tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def __init__(
8181
self.__url = f"{base_url}/api/tool/{name}/invoke"
8282
self.__description = description
8383
self.__params = params
84-
self.__pydantic_model = to_pydantic_model(self.__params)
84+
self.__pydantic_model = params_to_pydantic_model(self.__params)
8585

8686
inspect_type_params = [param.to_param() for param in self.__params]
8787

@@ -316,7 +316,7 @@ def identify_required_authn_params(
316316
return required_params
317317

318318

319-
def to_pydantic_model(params: Sequence[ParameterSchema]) -> Type[BaseModel]:
319+
def params_to_pydantic_model(params: Sequence[ParameterSchema]) -> Type[BaseModel]:
320320
"""Converts the given parameters to a Pydantic BaseModel class."""
321321
field_definitions = {}
322322
for field in params:

0 commit comments

Comments
 (0)