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

[JAWS-UG TOHOKU] AI エージェント 作って・使って・楽しんで ~Bedroc...

Avatar for geeawa geeawa
August 08, 2025
100

[JAWS-UG TOHOKU] AI エージェント 作って・使って・楽しんで ~Bedrock Engineer で AI エージェントを体験しよう~ / create, use and enjoy AI agents

Avatar for geeawa

geeawa

August 08, 2025
Tweet

More Decks by geeawa

Transcript

  1. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Confidential and Trademark. Bedrock Engineer で AI エージェントを体験しよう Daisuke Awaji J A W S U G 東 北 ( 仙 台 ・ 岩 手 ) Solutions Architect Amazon Web Services Japan G.K. AI エージェント 作って・使って・楽しんで
  2. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Daisuke Awaji Amazon Web Services Japan Solutions Architect 2 @gee0awa Serverless, Generative AI, Frontend ❤ @gee0awa 👆 こちらから資料をチェック
  3. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 3 AI エージェントの実装なんだか大変そう・・・ 本日は Bedrock Engineer を使って サクッ と AI エージェントを作って 体験してみましょう。 もし時間に余裕があれば、さらに AgentCore にデプロイする方法もご案内します
  4. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. https://github.com/aws-samples/bedrock-engineer 4 Bedrock Engineer とは? 様々な用途に使える AI エージェントが組み込まれたオープンソースのネイティブアプリ 複数のエージェントをカスタマイズして業務に合わせて利用が可能、AI エージェントの PoC にも使える。 ウェブサイト生成 様々なエージェント ダイヤグラム生成 ソフトウェア開発 図解して説明 音声チャット
  5. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Confidential and Trademark. ハンズオン 5 Bedrock Engineer で AI エージェントを作ってみよう 今日は1つ以上の AI エージェントを作ることがゴールです💪
  6. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. https://catalog.us-east-1.prod.workshops.aws/workshops/57e0af6e-41a5- 42cc-98e0-1f1a3fd0c6c4 6 ワークショップのURL Connpass の Web ページにて共有しております
  7. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 7 1. メールアドレスで登録します 2. メールアドレスを入力して Send passcode 3. Passcode を入力して Sign In メールの例
  8. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 8 チェックボックスにチェック
  9. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. ワークショップの画面 9 AWS アカウントにログイン アクセスキー シークレットキーの取得
  10. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. ワークショップの画面 10 あとで使います
  11. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Confidential and Trademark. 11 Bedrock Engineer のインストール
  12. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 12 インストール方法 アプリをダウンロードするだけ! は じ め か た Click !!
  13. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 13 インストール方法(ビルドする場合) $ npm install $ npm run build:mac npm run build:win npm run build:linux または または リポジトリをクローンして2行コマンド実行 ローカルにネイティブアプリがビルドされます! ① ビルドして ② アプリを開く ダブルクリックで開く Mac, Windows, Linux それぞれの OS に応じてコマンドを変えてください は じ め か た
  14. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 設定画面から AWS アクセスキー、シークレットアクセスキーを設定すれば すぐに利用開始できます 14 初期設定 設定画面を開く アクセスキー シークレットアクセスキーを設定 は じ め か た
  15. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. ワークショップの画面 アクセスキー・シークレットアクセスキーはこちら 15 クリック
  16. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AWS マネジメントコンソール Bedrock のモデルアクセスを選択し、 モデルアクセスの変更から利用するモデルのアクセスをリクエストしてください 16 Bedrock モデルアクセスの有効化
  17. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. “Hello“ とチャットで メッセージを送信してみて 応答があれば準備完了です。 17
  18. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. ワークショップのドキュメントを進める必要はありません お好きな機能からまずは “使って”、“楽しんで” みましょう😄 18 まずはお試しください
  19. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Confidential and Trademark. 19 Agent Chat
  20. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 20 チャット履歴 利用するツールの設定 作業するフォルダの設定 エージェントの設定
  21. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 21 AI エージェント 自分の置かれている環境を理解し、様々なツールを活用して 目標に向かってタスクをこなしていく AI の仕組み https://www.anthropic.com/research/building-effective-agents
  22. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 22 AI エージェントの構成要素 Agent ツール User ファイルの読み込み ファイルの書き込み ファイルの移動、コピー フォルダの作成 URL を指定した検索 Tavily Search による検索 画像生成 Amazon Nova, Titan Stable Diffusion シリーズ 任意のコマンド実行 Amazon Bedrock Knowledge Base Agents 独自のツールを実装し組み込みが可能 Python API Database MCP Server Model Context Protocol システムプロンプト あなたはカフェの店員です。 お客様の注文に答えます。 システムプロンプトとツール
  23. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 本日は 5 章を進めてみましょう。他の章は読み物としてご利用ください。 23 5.1 カスタムエージェントの作成
  24. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. ぜひ、ご共有ください 24 どんな AI エージェントをつくりましたか? 🖐 あなたはカフェの店員です。 お客様の注文に答えます。 あなたは紙芝居の達人です。 子供向けの絵本を作ります あなたはドメイン駆動開発の 達人です。DDDの思想に従っ て設計を行います。 あなたはクラウドの運用者で す。AWS CLI を使いこなして 調査します。
  25. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Confidential and Trademark. ハンズオン(応用編) 25 Bedrock Engineer で作った AI エージェントを AgentCore Runtime にデプロイ
  26. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AI エージェントをサクッと作って、しっかりデプロイ 26 検証から本番まで Bedrock Engineer で サクッと作る Strands Agents で カスタマイズ AgentCore Runtime にデプロイ
  27. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. エージェントを選択する3点リーダーから「Strandsに変換」ボタンをクリック! Bedrock Engineer の定義をもとに Strands Agents のコードを自動生成します。 27 カスタムエージェントの Strands 変換機能 ▶ Strands Agents のコードを 自動生成
  28. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 公式ドキュメントを読みながらデプロイしてみましょう。 28 Strands Agents を AgentCore Runtime にデプロイ https://github.com/awslabs/amazon-bedrock-agentcore-samples サンプルコード https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-getting-started-toolkit.html 公式ドキュメント Getting Started
  29. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Confidential and Trademark. 29 その他のソリューション
  30. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 30 GenU (Generative AI Use Cases JP) Remote SWE Agents オープンソースの AI ソリューション 幅広い業務ですぐに使える 生成 AI ユースケース集 開発・調査にすぐに使える リモートコーディングエージェント
  31. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 31 GenU (Generative AI Use Cases JP) Remote SWE Agents オープンソースの AI ソリューション 幅広い業務ですぐに使える 生成 AI ユースケース集 開発・調査にすぐに使える リモートコーディングエージェント
  32. © 2025、アマゾンウェブサービス社またはその関連会社 全著作権を留保します。 業務ですぐ使える生成 AI ユースケース 生成 AI API 基盤の上で稼働する、生成

    AI アプリケーション サーバーレスかつモダンアーキテクチャで構成される生成AIアプリケーションが数コマン Generative AI Use Cases JP (略称︓GenU) すぐに業務活⽤できる ビジネスユースケース集付きの 安全な⽣成 AI アプリ実装 OSS として無償提供中
  33. © 2025、アマゾンウェブサービス社またはその関連会社 全著作権を留保します。 MCP のサポート、AgentCore の適用を進めています Model Context Protocol MCP

    AgentCore 組織ですぐに使えるエージェントアプリとして、サンプルコードとしてもご利用ください。 GenU の AI エージェント
  34. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 36 GenU (Generative AI Use Cases JP) Remote SWE Agents オープンソースの AI ソリューション 幅広い業務ですぐに使える 生成 AI ユースケース集 開発・調査にすぐに使える リモートコーディングエージェント
  35. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Control plane Remote SWE Agents https://github.com/aws-samples/remote-swe-agents Amazon Bedrock Agent Workers Amazon Elastic Compute Cloud (Amazon EC2) Amazon API Gateway AWS Lambda Users Slack スレッドごとに インスタンスを起動・⾃動停⽌ クラウド型 ⾮同期 OSS の開発エージェント • エージェントごとに専⽤のリモート開発環境を割り当て • Slack 上にいる、同僚のような利⽤体験を志向 • ⾮同期コミュニケーションでエージェントと協働 • API連携機能により多様なシステムとの統合が可能 Slack Webapp API 37
  36. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Remote SWE構築⽅法 1. Generative AI Solution Box でググる 2. ページを開いて、下までスクロール デプロイボタンを押す https://aws-samples.github.io/sample-one-click-generative-ai-solutions/ 3. パラメータを⼊⼒してデプロイ ご⾃⾝のメールアドレス GitHub PAT (⼀旦placeholderでも可) 以下↓はそのままでOK AWSにログインした状態でクリック 4. Create stack → メールを待つ 38
  37. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Slack/GitHubを起点とする円滑なコラボレーション 39
  38. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. アーキテクチャ サーバーレス!EC2!AppSync Events! 40
  39. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 何並列でも*エージェントを起動可能 * EC2やBedrockのクォータにより並列数のリミットはあります 41
  40. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. MCPサーバーとの統合でいっそう多才に Playwright MCPによるウェブブラウズ例 42
  41. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. TODOリスト管理による⻑時間の⾃⾛⼒ 43 コンテキストエンジニアリング観点でのTODOツールの良さを語りたい
  42. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. ⽉次の利⽤状況・コストも⼀⽬瞭然 44
  43. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. API連携機能で多様なシステムと統合 実⾏環境までRemote SWEが管理するため、CLI型よりも使い勝⼿が良い場⾯も多い 45
  44. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. コスト詳細ブレークダウン • Bedrockが⽀配的 • 簡単なバグ修正の場合: 0.5 USD/セッション • 新機能開発の場合: 3 USD/セッション • インフラコストは Bedrockコストの1〜2割 46 100セッション使った場合のコスト例
  45. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Thank you! © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Confidential and Trademark.