View a markdown version of this page

Prerequisiti - Amazon Bedrock AgentCore

Prerequisiti

Prima di utilizzare le funzioni di AgentCore ottimizzazione, accertatevi che siano presenti le seguenti condizioni.

Requisiti e framework supportati

Le raccomandazioni e A/B i test hanno gli stessi requisiti relativi agli agenti delle valutazioni: AgentCore

Requisiti SDK e CLI

  • AgentCore CLI: installa l'ultima versione eseguendo. agentcore update

  • AWS SDK (boto3): Python 3.10 o successivo. Installa o aggiorna con. pip install --upgrade boto3

  • AgentCore SDK: se si utilizza labedrock-agentcore-sdk-python, è richiesta la versione 1.8 o successiva.

autorizzazioni IAM

La seguente policy IAM concede le autorizzazioni per tutte e tre le funzionalità di ottimizzazione:

{ "Version": "2012-10-17", "Statement": [ { "Sid": "ConfigurationBundles", "Effect": "Allow", "Action": [ "bedrock-agentcore:CreateConfigurationBundle", "bedrock-agentcore:GetConfigurationBundle", "bedrock-agentcore:GetConfigurationBundleVersion", "bedrock-agentcore:ListConfigurationBundles", "bedrock-agentcore:ListConfigurationBundleVersions", "bedrock-agentcore:UpdateConfigurationBundle", "bedrock-agentcore:DeleteConfigurationBundle" ], "Resource": "arn:aws:bedrock-agentcore:*:*:configuration-bundle/*" }, { "Sid": "Recommendations", "Effect": "Allow", "Action": [ "bedrock-agentcore:StartRecommendation", "bedrock-agentcore:GetRecommendation", "bedrock-agentcore:ListRecommendations", "bedrock-agentcore:DeleteRecommendation" ], "Resource": "arn:aws:bedrock-agentcore:*:*:recommendation/*" }, { "Sid": "ABTesting", "Effect": "Allow", "Action": [ "bedrock-agentcore:CreateABTest", "bedrock-agentcore:GetABTest", "bedrock-agentcore:ListABTests", "bedrock-agentcore:UpdateABTest", "bedrock-agentcore:DeleteABTest" ], "Resource": "arn:aws:bedrock-agentcore:*:*:ab-test/*" }, { "Sid": "CloudWatchLogs", "Effect": "Allow", "Action": [ "logs:GetLogEvents", "logs:FilterLogEvents", "logs:StartQuery", "logs:GetQueryResults" ], "Resource": "arn:aws:logs:*:*:log-group:/aws/bedrock-agentcore/runtimes/*" } ] }