generative-ai-use-cases icon indicating copy to clipboard operation
generative-ai-use-cases copied to clipboard

Agent のエラーハンドリング不備

Open kazuhitogo opened this issue 10 months ago • 2 comments

バグの説明 設定を変えずに、Agent を実行したときに、成功するときと失敗する時がある。 失敗時に「モデルを有効化してください」、というコメントではなく適切なコメントを出してほしい

再現手順 作成したエージェントを何度か実行する

想定される動作 トレースが見えているので、エージェントの実行が失敗しただけなので(スロットリング?)、対応するエラーを出力してほしい。

スクリーンショット Image

Image

kazuhitogo avatar Feb 27 '25 04:02 kazuhitogo

処理の途中で表示されるケースがある。

Image

kazuhitogo avatar Feb 27 '25 13:02 kazuhitogo

意図的にエラーが起きる 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.

kazuhitogo avatar Mar 28 '25 05:03 kazuhitogo