View a markdown version of this page

审查注册记录 - 亚马逊基岩 AgentCore

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

审查注册记录

迁移现已开放

AWS 代理注册表已在新agent-registry命名空间下启动。对公共预览bedrock-agentcore命名空间的支持将于 2026 年 9 月 17 日停止。有关迁移说明,请参阅综合注册表迁移指南。

概述

作为策展人,您可以根据组织的安全性、合规性和元数据质量标准审查处于 “待批准” 状态的记录。

查看待处理记录

作为策展人,您可以从注册表详细信息页面、 AWS CLI 或 AWS SDK 中找到等待审核的记录。

控制台

例
AWS Agent Registry namespace
  1. 打开AWS 代理注册表控制台。

  2. 在导航窗格中,选择注册表,然后选择要查看的注册表。

  3. 在注册表记录部分,待批准状态摘要计数器显示有多少记录有待审核。

  4. 按状态筛选记录表,仅显示处于待批准状态的记录。

  5. 选择记录的名称以打开其详情页面并查看其内容。

Amazon Bedrock AgentCore namespace (to be deprecated)
  1. 在Bedrock-AgentCore 控制台中打开 AWS 代理注册表页面。

  2. 在导航窗格中,选择注册表,然后选择要查看的注册表。

  3. 在注册表记录部分,待批准状态摘要计数器显示有多少记录有待审核。

  4. 按状态筛选记录表,仅显示处于待批准状态的记录。

  5. 选择记录的名称以打开其详情页面并查看其内容。

AWS CLI

例
AWS Agent Registry namespace
aws agent-registry-control list-registry-records \ --registry-id "<registryId>" \ --filters '[{"name": "status", "values": ["PENDING_APPROVAL"]}]' \ --region us-east-1
Amazon Bedrock AgentCore namespace (to be deprecated)
aws bedrock-agentcore-control list-registry-records \ --registry-id "<registryId>" \ --status PENDING_APPROVAL \ --region us-east-1

AWS SDK

例
AWS Agent Registry namespace
import boto3 client = boto3.client('agent-registry-control') response = client.list_registry_records( registryId='<registryId>', filters=[{'name': 'status', 'values': ['PENDING_APPROVAL']}] ) for record in response['registryRecords']: print(f"{record['displayName']} ({record['name']}) - {record['recordType']}")
Amazon Bedrock AgentCore namespace (to be deprecated)
import boto3 client = boto3.client('bedrock-agentcore-control') response = client.list_registry_records( registryId='<registryId>', status='PENDING_APPROVAL' ) for record in response['registryRecords']: print(f"{record['name']} - {record['descriptorType']}")

批准记录

控制台

  1. 打开记录详情页面,查看处于待批准状态的记录。

  2. 选择更新状态下拉列表,然后选择批准。

  3. 在 “更新状态” 对话框中,输入状态更改的原因。

  4. 选择更新。

AWS CLI

例
AWS Agent Registry namespace
aws agent-registry-control update-registry-record-status \ --registry-id "<registryId>" \ --record-id "<recordId>" \ --status APPROVED \ --status-reason "Reviewed and approved" \ --region us-east-1
Amazon Bedrock AgentCore namespace (to be deprecated)
aws bedrock-agentcore-control update-registry-record-status \ --registry-id "<registryId>" \ --record-id "<recordId>" \ --status APPROVED \ --status-reason "Reviewed and approved" \ --region us-east-1

AWS SDK

例
AWS Agent Registry namespace
import boto3 client = boto3.client('agent-registry-control') response = client.update_registry_record_status( registryId='<registryId>', recordId='<recordId>', status='APPROVED', statusReason='Reviewed and approved' ) print(f"Status: {response['status']}") # APPROVED print(f"StatusReason: {response['statusReason']}")
Amazon Bedrock AgentCore namespace (to be deprecated)
import boto3 client = boto3.client('bedrock-agentcore-control') response = client.update_registry_record_status( registryId='<registryId>', recordId='<recordId>', status='APPROVED', statusReason='Reviewed and approved' ) print(f"Status: {response['status']}") # APPROVED print(f"StatusReason: {response['statusReason']}")

拒绝记录

控制台

  1. 打开记录详情页面,查看处于待批准状态的记录。

  2. 选择 “更新状态” 下拉列表,然后选择 “拒绝” 。

  3. 在 “更新状态” 对话框中,输入拒绝原因。

  4. 选择更新。

AWS CLI

例
AWS Agent Registry namespace
aws agent-registry-control update-registry-record-status \ --registry-id "<registryId>" \ --record-id "<recordId>" \ --status REJECTED \ --status-reason "Missing tool input schemas" \ --region us-east-1
Amazon Bedrock AgentCore namespace (to be deprecated)
aws bedrock-agentcore-control update-registry-record-status \ --registry-id "<registryId>" \ --record-id "<recordId>" \ --status REJECTED \ --status-reason "Missing tool input schemas" \ --region us-east-1

AWS SDK

例
AWS Agent Registry namespace
import boto3 client = boto3.client('agent-registry-control') response = client.update_registry_record_status( registryId='<registryId>', recordId='<recordId>', status='REJECTED', statusReason='Missing tool input schemas' ) print(f"Status: {response['status']}") # REJECTED print(f"StatusReason: {response['statusReason']}")
Amazon Bedrock AgentCore namespace (to be deprecated)
import boto3 client = boto3.client('bedrock-agentcore-control') response = client.update_registry_record_status( registryId='<registryId>', recordId='<recordId>', status='REJECTED', statusReason='Missing tool input schemas' ) print(f"Status: {response['status']}") # REJECTED print(f"StatusReason: {response['statusReason']}")
注意

出版商可以编辑和重新提交,或者策展人可以直接批准被拒绝的记录。