File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/toolbox-core/src/toolbox_core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ def __init__(
81
81
self .__url = f"{ base_url } /api/tool/{ name } /invoke"
82
82
self .__description = description
83
83
self .__params = params
84
- self .__pydantic_model = to_pydantic_model (self .__params )
84
+ self .__pydantic_model = params_to_pydantic_model (self .__params )
85
85
86
86
inspect_type_params = [param .to_param () for param in self .__params ]
87
87
@@ -316,7 +316,7 @@ def identify_required_authn_params(
316
316
return required_params
317
317
318
318
319
- def to_pydantic_model (params : Sequence [ParameterSchema ]) -> Type [BaseModel ]:
319
+ def params_to_pydantic_model (params : Sequence [ParameterSchema ]) -> Type [BaseModel ]:
320
320
"""Converts the given parameters to a Pydantic BaseModel class."""
321
321
field_definitions = {}
322
322
for field in params :
You can’t perform that action at this time.
0 commit comments