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