You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: Add the Base SDK support to the Toolbox SDK
This is done by updating the underlying `AsyncToolboxTool` class to return a function-like tool instead of a specific LangChain orchestration's `BaseTool` type.
f"Tool {self.__name} requires authentication, but no valid authentication sources are registered. Please register the required sources before use."
246
+
f"Tool {self.__name__} requires authentication, but no valid authentication sources are registered. Please register the required sources before use."
225
247
)
226
248
227
249
ifparams_missing_auth:
228
250
messages.append(
229
-
f"Parameter(s) `{', '.join(params_missing_auth)}` of tool {self.__name} require authentication, but no valid authentication sources are registered. Please register the required sources before use."
251
+
f"Parameter(s) `{', '.join(params_missing_auth)}` of tool {self.__name__} require authentication, but no valid authentication sources are registered. Please register the required sources before use."
230
252
)
231
253
232
254
ifmessages:
@@ -277,7 +299,7 @@ def __create_copy(
277
299
# as errors or warnings, depending on the given `strict` flag.
278
300
new_schema.parameters+=self.__auth_params
279
301
returnAsyncToolboxTool(
280
-
name=self.__name,
302
+
name=self.__name__,
281
303
schema=new_schema,
282
304
url=self.__url,
283
305
session=self.__session,
@@ -317,7 +339,7 @@ def add_auth_tokens(
317
339
318
340
ifdupe_tokens:
319
341
raiseValueError(
320
-
f"Authentication source(s) `{', '.join(dupe_tokens)}` already registered in tool `{self.__name}`."
342
+
f"Authentication source(s) `{', '.join(dupe_tokens)}` already registered in tool `{self.__name__}`."
0 commit comments