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 support for checking tool-level auth before tool invocation. (#72)
This is to prevent tool invocation if the required tool-level auth is missing. This is similar to how we prevent tool invocation if a parameter-level auth is missing.
f"Tool {self.__name} requires authentication, but no valid authentication sources are registered. Please register the required sources before use."
225
+
)
226
+
213
227
ifparams_missing_auth:
214
-
message=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."
228
+
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."
0 commit comments