@@ -85,27 +85,27 @@ async def aload_tool(
85
85
)
86
86
auth_token_getters = auth_tokens
87
87
88
- coro = self .__core_sync_client ._ToolboxSyncClient__async_client .load_tool (
88
+ coro = self .__core_sync_client ._async_client .load_tool (
89
89
name = tool_name ,
90
90
auth_token_getters = auth_token_getters ,
91
91
bound_params = bound_params ,
92
92
)
93
93
94
- if not self .__core_sync_client ._ToolboxSyncClient__loop :
94
+ if not self .__core_sync_client ._loop :
95
95
# If a loop has not been provided, attempt to run in current thread.
96
96
core_tool = await coro
97
97
else :
98
98
# Otherwise, run in the background thread.
99
99
core_tool = await asyncio .wrap_future (
100
100
asyncio .run_coroutine_threadsafe (
101
- coro , self .__core_sync_client ._ToolboxSyncClient__loop
101
+ coro , self .__core_sync_client ._loop
102
102
)
103
103
)
104
104
105
105
core_sync_tool = ToolboxSyncTool (
106
106
core_tool ,
107
- self .__core_sync_client ._ToolboxSyncClient__loop ,
108
- self .__core_sync_client ._ToolboxSyncClient__thread ,
107
+ self .__core_sync_client ._loop ,
108
+ self .__core_sync_client ._thread ,
109
109
)
110
110
return ToolboxTool (core_sync_tool = core_sync_tool )
111
111
@@ -166,29 +166,29 @@ async def aload_toolset(
166
166
)
167
167
auth_token_getters = auth_tokens
168
168
169
- coro = self .__core_sync_client ._ToolboxSyncClient__async_client .load_toolset (
169
+ coro = self .__core_sync_client ._async_client .load_toolset (
170
170
name = toolset_name ,
171
171
auth_token_getters = auth_token_getters ,
172
172
bound_params = bound_params ,
173
173
strict = strict ,
174
174
)
175
175
176
- if not self .__core_sync_client ._ToolboxSyncClient__loop :
176
+ if not self .__core_sync_client ._loop :
177
177
# If a loop has not been provided, attempt to run in current thread.
178
178
core_tools = await coro
179
179
else :
180
180
# Otherwise, run in the background thread.
181
181
core_tools = await asyncio .wrap_future (
182
182
asyncio .run_coroutine_threadsafe (
183
- coro , self .__core_sync_client ._ToolboxSyncClient__loop
183
+ coro , self .__core_sync_client ._loop
184
184
)
185
185
)
186
186
187
187
core_sync_tools = [
188
188
ToolboxSyncTool (
189
189
core_tool ,
190
- self .__core_sync_client ._ToolboxSyncClient__loop ,
191
- self .__core_sync_client ._ToolboxSyncClient__thread ,
190
+ self .__core_sync_client ._loop ,
191
+ self .__core_sync_client ._thread ,
192
192
)
193
193
for core_tool in core_tools
194
194
]
0 commit comments