From c080eba182bb17ba60f15e716697d6a0ccbcaf20 Mon Sep 17 00:00:00 2001 From: Otto Date: Mon, 9 Feb 2026 08:50:16 +0000 Subject: [PATCH] refactor: rename _check_block_credentials to _match_block_credentials Better reflects that it returns matched credentials used for execution, not just a pass/fail check. --- .../backend/backend/api/features/chat/tools/run_block.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 8f37937df5..9fc0f41054 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 @@ -134,7 +134,7 @@ class RunBlockTool(BaseTool): logger.info(f"Executing block {block.name} ({block_id}) for user {user_id}") creds_manager = IntegrationCredentialsManager() - matched_credentials, missing_credentials = await self._check_block_credentials( + matched_credentials, missing_credentials = await self._match_block_credentials( user_id, block, input_data ) @@ -264,7 +264,7 @@ class RunBlockTool(BaseTool): session_id=session_id, ) - async def _check_block_credentials( + async def _match_block_credentials( self, user_id: str, block: AnyBlockSchema,