Upgrade to Pro — share decks privately, control downloads, hide ads and more …

話題のAgentCore試してみた

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

 話題のAgentCore試してみた

Avatar for Takeguchi

Takeguchi

August 29, 2025
Tweet

More Decks by Takeguchi

Other Decks in Technology

Transcript

  1. ©Fusic Co., Ltd. 1 CONFIDENTIAL 自己紹介 はじめに 竹口 広武 H

    I R O M U TA K E G U C H I 株式会社Fusic 25卒新卒エンジニア 興味のある技術 • AWS • 機械学習 • MLOps
  2. ©Fusic Co., Ltd. 4 CONFIDENTIAL AgentCoreの概要 AgentCoreは、あらゆるフレームワーク/モデルでエンタープライズ規模のAIエージェントを 安全に運用するための基盤(プレビュー)。 主要コンポーネント •

    AgentCore Runtime:エージェント/ツールをサーバーレスで安全にホストし、長時間実行やセッション分離でスケール • AgentCore Memory:短期/長期の記憶をマネージドに保持して文脈を蓄積・共有できる • AgentCore Gateway:既存APIやLambdaをMCP互換ツールとして公開・発見・接続できる安全な仲介レイヤ • AgentCore Browser:クラウド隔離ブラウザでWeb操作を自動化 • AgentCore Code Interpreter:サンドボックスでコード(例: Python/JavaScript)を安全に実行し、計算やデータ処理を補助 • AgentCore Observability: CloudWatch/OpenTelemetryで実行トレースやメトリクスを可視化・監視・デバッグ • AgentCore Identity:エージェント/ツール用のID・認可とトークン保管で、AWSや外部SaaSへの委譲アクセスを安全に AgentCoreとは?
  3. ©Fusic Co., Ltd. 6 CONFIDENTIAL AgentCore Runtime AIエージェントの作成からデプロイまで Python で簡単に試せます

    こちらのチュートリアルサイトを試します! 初めての方はおすすめです 「5分で AI エージェントをデプロイ・ホスティングする – Amazon Bedrock AgentCore Runtime」 https://aws.amazon.com/jp/blogs/startup/5min-ai-agent-hosting/
  4. ©Fusic Co., Ltd. 7 CONFIDENTIAL AgentCore Runtime Python環境の準備 仮想環境の用意 $

    python -m venv .venv $ source .venv/bin/activate $ パッケージのインストール $ pip3 install strands-agents bedrock-agentcore bedrock-agentcore-starter-toolkit
  5. ©Fusic Co., Ltd. 8 CONFIDENTIAL Agentの用意とデプロイが14行で可能 • 必要なPythonパッケージ:Strands Agents 、AgentCore

    に関する2つ • 用意するファイル:以下の2つ AgentCore Runtime my_agent.py requirements.txt
  6. ©Fusic Co., Ltd. 9 CONFIDENTIAL デプロイするための設定コマンド $ agentcore configure -e

    my_agent.py デプロイするコマンド $ agentcore launch AgentCore Runtime デプロイはマネコンのAgentCoreから確認可能
  7. ©Fusic Co., Ltd. 10 CONFIDENTIAL $ agentcore invoke ‘{“prompt”: “Hello”}’

    を実行するとエージェントからレスポンスが返却される AgentCore Runtime Response: { "ResponseMetadata": { "RequestId": "*****", "HTTPStatusCode": 200, "HTTPHeaders": { "date": "Thu, 28 Aug 2025 05:37:41 GMT", "content-type": "application/json", "transfer-encoding": "chunked", "connection": "keep-alive", "x-amzn-requestid": "*****", "baggage": "******", "x-amzn-bedrock-agentcore-runtime-session-id": "******", "x-amzn-trace-id": "******" }, "RetryAttempts": 0 }, "runtimeSessionId": "******", "traceId": "******", "baggage": "******", "contentType": "application/json", "statusCode": 200, "response": [ "b'{\"result\": {\"role\": \"assistant\", \"content\": [{\"text\": \"Hello! How are you doing today? Is there anything I can help you with?\"}]}}’” ] }
  8. ©Fusic Co., Ltd. 12 CONFIDENTIAL AgentCore Browser クラウド上の隔離されたブラウザ環境を提供し、エージェントがWebサイトを安全に操作できるサービス 主な特徴 モデルに依存しない柔軟性

    • Anthropic の Claude、OpenAI のモデル、Amazon の Nova モデルなど、さまざまな AI モデルのさまざまなコマンド構文をサポート スケーラビリティ • インフラストラクチャのオーバーヘッドなしで自動的にスケーリング 人間と同じような操作 • スクリーンショットでの視覚的な理解 セキュリティ • 隔離されたブラウザ環境 包括的な監査機能 • すべてのブラウザ コマンドの CloudTrail ログ記録とセッション記録機能が含まれます。 今回はこちらのチュートリアルサイト試しました https://github.com/awslabs/amazon-bedrock-agentcore-samples AgentCore Browser
  9. ©Fusic Co., Ltd. 20 CONFIDENTIAL AgentCore Browser 与えた指示:"Search for macbooks

    on amazon.com and extract the details of the first one” ”amazon.comでMacBookを検索し、最初の商品詳細を抽出してください“
  10. ©Fusic Co., Ltd. 21 CONFIDENTIAL AgentCore Browser 与えた指示:"Search for macbooks

    on amazon.com and extract the details of the first one” ”amazon.comでMacBookを検索し、最初の商品詳細を抽出してください“
  11. ©Fusic Co., Ltd. 22 CONFIDENTIAL AgentCore Browser 与えた指示:"Search for macbooks

    on amazon.com and extract the details of the first one” ”amazon.comでMacBookを検索し、最初の商品詳細を抽出してください“
  12. ©Fusic Co., Ltd. 23 CONFIDENTIAL AgentCore Browser 与えた指示:"Search for macbooks

    on amazon.com and extract the details of the first one” ”amazon.comでMacBookを検索し、最初の商品詳細を抽出してください“
  13. ©Fusic Co., Ltd. 24 CONFIDENTIAL AgentCore Browser 与えた指示:"Search for macbooks

    on amazon.com and extract the details of the first one” ”amazon.comでMacBookを検索し、最初の商品詳細を抽出してください“
  14. ©Fusic Co., Ltd. 25 CONFIDENTIAL AgentCore Browser 与えた指示:"Search for macbooks

    on amazon.com and extract the details of the first one” ”amazon.comでMacBookを検索し、最初の商品詳細を抽出してください“
  15. ©Fusic Co., Ltd. 26 CONFIDENTIAL AgentCore Browser 与えた指示:"Search for macbooks

    on amazon.com and extract the details of the first one” ”amazon.comでMacBookを検索し、最初の商品詳細を抽出してください“
  16. ©Fusic Co., Ltd. 27 CONFIDENTIAL AgentCore Browser 与えた指示:"Search for macbooks

    on amazon.com and extract the details of the first one” ”amazon.comでMacBookを検索し、最初の商品詳細を抽出してください“
  17. ©Fusic Co., Ltd. 28 CONFIDENTIAL AgentCore Browser 与えた指示:"Search for macbooks

    on amazon.com and extract the details of the first one” ”amazon.comでMacBookを検索し、最初の商品詳細を抽出してください“
  18. ©Fusic Co., Ltd. 29 CONFIDENTIAL AgentCore Browser 与えた指示:"Search for macbooks

    on amazon.com and extract the details of the first one” ”amazon.comでMacBookを検索し、最初の商品詳細を抽出してください“
  19. ©Fusic Co., Ltd. 32 CONFIDENTIAL Thank You We are Hiring!

    https://recruit.fusic.co.jp/ ご清聴いただきありがとうございました