Skip to content

Commit 09410c4

Browse files
committed
chore: Make variable names more intuitive
1 parent 22aa329 commit 09410c4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/toolbox-langchain/src/toolbox_langchain/async_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ async def _arun(
8181
# getters are used by the tool. To prevent validation errors,
8282
# filter the incoming getters to include only those that this
8383
# specific tool requires.
84-
required_auth_keys = set(self.__core_tool._required_authz_tokens)
84+
req_auth_services = set(self.__core_tool._required_authz_tokens)
8585
for auth_list in self.__core_tool._required_authn_params.values():
86-
required_auth_keys.update(auth_list)
86+
req_auth_services.update(auth_list)
8787
filtered_getters = {
8888
k: v
8989
for k, v in auth_token_getters.items()
90-
if k in required_auth_keys
90+
if k in req_auth_services
9191
}
9292
if filtered_getters:
9393
tool_to_run = self.__core_tool.add_auth_token_getters(

packages/toolbox-langchain/src/toolbox_langchain/tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ def __get_tool_to_run(self, config: RunnableConfig) -> ToolboxCoreSyncTool:
8888
# getters are used by the tool. To prevent validation errors,
8989
# filter the incoming getters to include only those that this
9090
# specific tool requires.
91-
required_auth_keys = set(self.__core_tool._required_authz_tokens)
91+
req_auth_services = set(self.__core_tool._required_authz_tokens)
9292
for auth_list in self.__core_tool._required_authn_params.values():
93-
required_auth_keys.update(auth_list)
93+
req_auth_services.update(auth_list)
9494
filtered_getters = {
9595
k: v
9696
for k, v in auth_token_getters.items()
97-
if k in required_auth_keys
97+
if k in req_auth_services
9898
}
9999
if filtered_getters:
100100
tool_to_run = self.__core_tool.add_auth_token_getters(

0 commit comments

Comments
 (0)