Slide 1

Slide 1 text

© 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 エージェント 作って・使って・楽しんで

Slide 2

Slide 2 text

© 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 👆 こちらから資料をチェック

Slide 3

Slide 3 text

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

Slide 4

Slide 4 text

© 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 にも使える。 ウェブサイト生成 様々なエージェント ダイヤグラム生成 ソフトウェア開発 図解して説明 音声チャット

Slide 5

Slide 5 text

© 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 エージェントを作ることがゴールです💪

Slide 6

Slide 6 text

© 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 ページにて共有しております

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

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

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

© 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 のインストール

Slide 12

Slide 12 text

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

Slide 13

Slide 13 text

© 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 に応じてコマンドを変えてください は じ め か た

Slide 14

Slide 14 text

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

Slide 15

Slide 15 text

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

Slide 16

Slide 16 text

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

Slide 17

Slide 17 text

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

Slide 18

Slide 18 text

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

Slide 19

Slide 19 text

© 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

Slide 20

Slide 20 text

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

Slide 21

Slide 21 text

© 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

Slide 22

Slide 22 text

© 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 システムプロンプト あなたはカフェの店員です。 お客様の注文に答えます。 システムプロンプトとツール

Slide 23

Slide 23 text

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

Slide 24

Slide 24 text

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

Slide 25

Slide 25 text

© 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 にデプロイ

Slide 26

Slide 26 text

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

Slide 27

Slide 27 text

© 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 のコードを 自動生成

Slide 28

Slide 28 text

© 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

Slide 29

Slide 29 text

© 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 その他のソリューション

Slide 30

Slide 30 text

© 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 ユースケース集 開発・調査にすぐに使える リモートコーディングエージェント

Slide 31

Slide 31 text

© 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 ユースケース集 開発・調査にすぐに使える リモートコーディングエージェント

Slide 32

Slide 32 text

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

Slide 33

Slide 33 text

© 2025、アマゾンウェブサービス社またはその関連会社 全著作権を留保します。 アーキテクチャ 基本部分はフルサーバーレス + 様々なオプションをデプロイ可能

Slide 34

Slide 34 text

© 2025、アマゾンウェブサービス社またはその関連会社 全著作権を留保します。 収録ユースケースと機能 ⽂ A チャット 議事録⽣成 Webコンテンツ抽出 動画⽣成 画像⽣成 ⾳声認識 RAGチャット 翻訳

Slide 35

Slide 35 text

© 2025、アマゾンウェブサービス社またはその関連会社 全著作権を留保します。 MCP のサポート、AgentCore の適用を進めています Model Context Protocol MCP AgentCore 組織ですぐに使えるエージェントアプリとして、サンプルコードとしてもご利用ください。 GenU の AI エージェント

Slide 36

Slide 36 text

© 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 ユースケース集 開発・調査にすぐに使える リモートコーディングエージェント

Slide 37

Slide 37 text

© 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

Slide 38

Slide 38 text

© 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

Slide 39

Slide 39 text

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

Slide 40

Slide 40 text

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

Slide 41

Slide 41 text

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

Slide 42

Slide 42 text

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

Slide 43

Slide 43 text

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

Slide 44

Slide 44 text

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

Slide 45

Slide 45 text

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

Slide 46

Slide 46 text

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

Slide 47

Slide 47 text

© 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.