mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-09 06:15:41 -05:00
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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user