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."
242
+
f"Tool {self.__name__} requires authentication, but no valid authentication sources are registered. Please register the required sources before use."
225
243
)
226
244
227
245
ifparams_missing_auth:
228
246
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."
247
+
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
248
)
231
249
232
250
ifmessages:
@@ -277,7 +295,7 @@ def __create_copy(
277
295
# as errors or warnings, depending on the given `strict` flag.
278
296
new_schema.parameters+=self.__auth_params
279
297
returnAsyncToolboxTool(
280
-
name=self.__name,
298
+
name=self.__name__,
281
299
schema=new_schema,
282
300
url=self.__url,
283
301
session=self.__session,
@@ -317,7 +335,7 @@ def add_auth_tokens(
317
335
318
336
ifdupe_tokens:
319
337
raiseValueError(
320
-
f"Authentication source(s) `{', '.join(dupe_tokens)}` already registered in tool `{self.__name}`."
338
+
f"Authentication source(s) `{', '.join(dupe_tokens)}` already registered in tool `{self.__name__}`."
0 commit comments