diff --git a/autogpt_platform/backend/backend/api/features/chat/tools/run_block.py b/autogpt_platform/backend/backend/api/features/chat/tools/run_block.py index 8b467104f9..7ed6585a2a 100644 --- a/autogpt_platform/backend/backend/api/features/chat/tools/run_block.py +++ b/autogpt_platform/backend/backend/api/features/chat/tools/run_block.py @@ -23,7 +23,10 @@ from .models import ( ToolResponseBase, UserReadiness, ) -from .utils import build_missing_credentials_from_field_info, match_credentials_to_requirements +from .utils import ( + build_missing_credentials_from_field_info, + match_credentials_to_requirements, +) logger = logging.getLogger(__name__) diff --git a/autogpt_platform/backend/backend/api/features/chat/tools/utils.py b/autogpt_platform/backend/backend/api/features/chat/tools/utils.py index 812c6ccaba..64b004327f 100644 --- a/autogpt_platform/backend/backend/api/features/chat/tools/utils.py +++ b/autogpt_platform/backend/backend/api/features/chat/tools/utils.py @@ -259,8 +259,7 @@ def find_matching_credential( ( cred for cred in available_creds - if cred.provider in required_providers - and cred.type in required_types + if cred.provider in required_providers and cred.type in required_types ), None, ) @@ -387,7 +386,9 @@ async def match_user_credentials_to_graph( } # Use shared matching logic - matched, missing_list = await match_credentials_to_requirements(user_id, requirements) + matched, missing_list = await match_credentials_to_requirements( + user_id, requirements + ) # Convert missing list to string descriptions for backward compatibility missing_descriptions = [