generative-ai-use-cases
generative-ai-use-cases copied to clipboard
Agent のエラーハンドリング不備
バグの説明 設定を変えずに、Agent を実行したときに、成功するときと失敗する時がある。 失敗時に「モデルを有効化してください」、というコメントではなく適切なコメントを出してほしい
再現手順 作成したエージェントを何度か実行する
想定される動作 トレースが見えているので、エージェントの実行が失敗しただけなので(スロットリング?)、対応するエラーを出力してほしい。
スクリーンショット
処理の途中で表示されるケースがある。
意図的にエラーが起きる Agent を実行したら再現
EventStreamError で、選択したモデルが有効化されていないようです。Bedrock コンソールの Model Access 画面にて、利用したいモデルを有効化してください。 が再現
botocore.exceptions.EventStreamError: An error occurred (dependencyFailedException) when calling the InvokeAgent operation: Your request couldn't be completed. Lambda function {FUNCTION_ARN} encountered a problem while processing request.The error message from the Lambda function is Unhandled. Check the Lambda function log for error details, then try your request again after fixing the error.