File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
packages/toolbox-core/src/toolbox_core Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 25
25
Optional ,
26
26
Union ,
27
27
)
28
- from toolbox_core . protocol import ToolSchema
28
+
29
29
from aiohttp import ClientSession
30
30
31
+ from toolbox_core .protocol import ToolSchema
32
+
31
33
32
34
class ToolboxTool :
33
35
"""
@@ -93,9 +95,7 @@ def __init__(
93
95
self .__bound_parameters = bound_params
94
96
95
97
@staticmethod
96
- def _schema_to_docstring (
97
- schema : ToolSchema
98
- ) -> str :
98
+ def _schema_to_docstring (schema : ToolSchema ) -> str :
99
99
"""Convert a tool schema into its function docstring"""
100
100
docstring = schema .description
101
101
if not schema .parameters :
@@ -275,7 +275,9 @@ def bind_parameters(
275
275
276
276
return self .__copy (
277
277
schema = new_schema ,
278
- bound_params = types .MappingProxyType (dict (self .__bound_parameters , ** bound_params ))
278
+ bound_params = types .MappingProxyType (
279
+ dict (self .__bound_parameters , ** bound_params )
280
+ ),
279
281
)
280
282
281
283
@@ -303,4 +305,4 @@ def identify_required_authn_params(
303
305
required = not any (s in services for s in auth_service_names )
304
306
if required :
305
307
required_params [param ] = services
306
- return required_params
308
+ return required_params
You can’t perform that action at this time.
0 commit comments