@@ -59,31 +59,31 @@ async def aload_tool(
59
59
Returns:
60
60
A tool loaded from the Toolbox.
61
61
"""
62
- if auth_headers :
62
+ if auth_tokens :
63
63
if auth_token_getters :
64
64
warn (
65
- "Both `auth_token_getters` and `auth_headers ` are provided. `auth_headers ` is deprecated, and `auth_token_getters` will be used." ,
65
+ "Both `auth_token_getters` and `auth_tokens ` are provided. `auth_tokens ` is deprecated, and `auth_token_getters` will be used." ,
66
66
DeprecationWarning ,
67
67
)
68
68
else :
69
69
warn (
70
- "Argument `auth_headers ` is deprecated. Use `auth_token_getters` instead." ,
70
+ "Argument `auth_tokens ` is deprecated. Use `auth_token_getters` instead." ,
71
71
DeprecationWarning ,
72
72
)
73
- auth_token_getters = auth_headers
73
+ auth_token_getters = auth_tokens
74
74
75
- if auth_tokens :
75
+ if auth_headers :
76
76
if auth_token_getters :
77
77
warn (
78
- "Both `auth_token_getters` and `auth_tokens ` are provided. `auth_tokens ` is deprecated, and `auth_token_getters` will be used." ,
78
+ "Both `auth_token_getters` and `auth_headers ` are provided. `auth_headers ` is deprecated, and `auth_token_getters` will be used." ,
79
79
DeprecationWarning ,
80
80
)
81
81
else :
82
82
warn (
83
- "Argument `auth_tokens ` is deprecated. Use `auth_token_getters` instead." ,
83
+ "Argument `auth_headers ` is deprecated. Use `auth_token_getters` instead." ,
84
84
DeprecationWarning ,
85
85
)
86
- auth_token_getters = auth_tokens
86
+ auth_token_getters = auth_headers
87
87
88
88
coro = self .__core_sync_client ._async_client .load_tool (
89
89
name = tool_name ,
@@ -141,31 +141,31 @@ async def aload_toolset(
141
141
Returns:
142
142
A list of all tools loaded from the Toolbox.
143
143
"""
144
- if auth_headers :
144
+ if auth_tokens :
145
145
if auth_token_getters :
146
146
warn (
147
- "Both `auth_token_getters` and `auth_headers ` are provided. `auth_headers ` is deprecated, and `auth_token_getters` will be used." ,
147
+ "Both `auth_token_getters` and `auth_tokens ` are provided. `auth_tokens ` is deprecated, and `auth_token_getters` will be used." ,
148
148
DeprecationWarning ,
149
149
)
150
150
else :
151
151
warn (
152
- "Argument `auth_headers ` is deprecated. Use `auth_token_getters` instead." ,
152
+ "Argument `auth_tokens ` is deprecated. Use `auth_token_getters` instead." ,
153
153
DeprecationWarning ,
154
154
)
155
- auth_token_getters = auth_headers
155
+ auth_token_getters = auth_tokens
156
156
157
- if auth_tokens :
157
+ if auth_headers :
158
158
if auth_token_getters :
159
159
warn (
160
- "Both `auth_token_getters` and `auth_tokens ` are provided. `auth_tokens ` is deprecated, and `auth_token_getters` will be used." ,
160
+ "Both `auth_token_getters` and `auth_headers ` are provided. `auth_headers ` is deprecated, and `auth_token_getters` will be used." ,
161
161
DeprecationWarning ,
162
162
)
163
163
else :
164
164
warn (
165
- "Argument `auth_tokens ` is deprecated. Use `auth_token_getters` instead." ,
165
+ "Argument `auth_headers ` is deprecated. Use `auth_token_getters` instead." ,
166
166
DeprecationWarning ,
167
167
)
168
- auth_token_getters = auth_tokens
168
+ auth_token_getters = auth_headers
169
169
170
170
coro = self .__core_sync_client ._async_client .load_toolset (
171
171
name = toolset_name ,
@@ -222,31 +222,31 @@ def load_tool(
222
222
Returns:
223
223
A tool loaded from the Toolbox.
224
224
"""
225
- if auth_headers :
225
+ if auth_tokens :
226
226
if auth_token_getters :
227
227
warn (
228
- "Both `auth_token_getters` and `auth_headers ` are provided. `auth_headers ` is deprecated, and `auth_token_getters` will be used." ,
228
+ "Both `auth_token_getters` and `auth_tokens ` are provided. `auth_tokens ` is deprecated, and `auth_token_getters` will be used." ,
229
229
DeprecationWarning ,
230
230
)
231
231
else :
232
232
warn (
233
- "Argument `auth_headers ` is deprecated. Use `auth_token_getters` instead." ,
233
+ "Argument `auth_tokens ` is deprecated. Use `auth_token_getters` instead." ,
234
234
DeprecationWarning ,
235
235
)
236
- auth_token_getters = auth_headers
236
+ auth_token_getters = auth_tokens
237
237
238
- if auth_tokens :
238
+ if auth_headers :
239
239
if auth_token_getters :
240
240
warn (
241
- "Both `auth_token_getters` and `auth_tokens ` are provided. `auth_tokens ` is deprecated, and `auth_token_getters` will be used." ,
241
+ "Both `auth_token_getters` and `auth_headers ` are provided. `auth_headers ` is deprecated, and `auth_token_getters` will be used." ,
242
242
DeprecationWarning ,
243
243
)
244
244
else :
245
245
warn (
246
- "Argument `auth_tokens ` is deprecated. Use `auth_token_getters` instead." ,
246
+ "Argument `auth_headers ` is deprecated. Use `auth_token_getters` instead." ,
247
247
DeprecationWarning ,
248
248
)
249
- auth_token_getters = auth_tokens
249
+ auth_token_getters = auth_headers
250
250
251
251
core_sync_tool = self .__core_sync_client .load_tool (
252
252
name = tool_name ,
@@ -286,31 +286,31 @@ def load_toolset(
286
286
Returns:
287
287
A list of all tools loaded from the Toolbox.
288
288
"""
289
- if auth_headers :
289
+ if auth_tokens :
290
290
if auth_token_getters :
291
291
warn (
292
- "Both `auth_token_getters` and `auth_headers ` are provided. `auth_headers ` is deprecated, and `auth_token_getters` will be used." ,
292
+ "Both `auth_token_getters` and `auth_tokens ` are provided. `auth_tokens ` is deprecated, and `auth_token_getters` will be used." ,
293
293
DeprecationWarning ,
294
294
)
295
295
else :
296
296
warn (
297
- "Argument `auth_headers ` is deprecated. Use `auth_token_getters` instead." ,
297
+ "Argument `auth_tokens ` is deprecated. Use `auth_token_getters` instead." ,
298
298
DeprecationWarning ,
299
299
)
300
- auth_token_getters = auth_headers
300
+ auth_token_getters = auth_tokens
301
301
302
- if auth_tokens :
302
+ if auth_headers :
303
303
if auth_token_getters :
304
304
warn (
305
- "Both `auth_token_getters` and `auth_tokens ` are provided. `auth_tokens ` is deprecated, and `auth_token_getters` will be used." ,
305
+ "Both `auth_token_getters` and `auth_headers ` are provided. `auth_headers ` is deprecated, and `auth_token_getters` will be used." ,
306
306
DeprecationWarning ,
307
307
)
308
308
else :
309
309
warn (
310
- "Argument `auth_tokens ` is deprecated. Use `auth_token_getters` instead." ,
310
+ "Argument `auth_headers ` is deprecated. Use `auth_token_getters` instead." ,
311
311
DeprecationWarning ,
312
312
)
313
- auth_token_getters = auth_tokens
313
+ auth_token_getters = auth_headers
314
314
315
315
core_sync_tools = self .__core_sync_client .load_toolset (
316
316
name = toolset_name ,
0 commit comments