Skip to content
Proyek

awslabs/amazon-bedrock-agent-samples

Lihat di GitHub

Tentang

Contoh notebook Jupyter ๐Ÿ““ dan skrip kode ๐Ÿ’ป untuk menggunakan Amazon Bedrock Agents ๐Ÿค– beserta fungsinya

Pembelajaran dan pendidikan

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Amazon Bedrock Agent Samples 

:wave: :wave: Welcome to the Amazon Bedrock Agent Samples repository :wave: :wave:

[!CAUTION] The examples provided in this repository are for experimental and educational purposes only. They demonstrate concepts and techniques but are not intended for direct use in production environments. Make sure to have Amazon Bedrock Guardrails in place to protect against prompt injection.

This repository provides examples and best practices for working with Amazon Bedrock Agents.

Amazon Bedrock Agents enables you to automate complex workflows, build robust and scalable end-to-end solutions from experimentation to production and quickly adapt to new models and experiments.

With Amazon Bedrock multi-agent collaboration you can plan and execute complex tasks across agents using supervisor mode. You can also have unified conversations across agents with built-in intent classification using the supervisor with routing mode and fallback to supervisor mode when a single intention cannot be detected. Amazon Bedrock Agents provides you with traces to observe your agents' behavior across multi-agent flows and provides guardrails, security and privacy that are standard across Amazon Bedrock features.

architecture

Demo Video


This one-hour video takes you through a deep dive introduction to Amazon Bedrock multi-agent collaboration, including a pair of demos, and a walkthrough of Unifying customer experiences, and Automating complex processes. Youโ€™ll also see a customer explain their experience with multi-agent solutions.

๏ฟฝ Table of Contents ๏ฟฝ

Overview

Amazon Bedrock Agents enables you to create AI-powered assistants that can perform complex tasks and interact with various APIs and services.

This repository provides practical examples to help you understand and implement agentic solutions.

The solutions presented here use the boto3 SDK in Python, however, you can create Bedrock Agents solutions using any of the AWS SDKs for C++, Go, Java, JavaScript, Kotlin, .NET, PHP, Ruby, Rust, SAP ABAP or Swift

Repository Structure

โ”œโ”€โ”€ examples/agents/
โ”‚   โ”œโ”€โ”€ agent_with_code_interpretation/
โ”‚   โ”œโ”€โ”€ user_confirmation_agents/
โ”‚   โ”œโ”€โ”€ inline_agent/
|   โ””โ”€โ”€ ....
โ”œโ”€โ”€ examples/multi_agent_collaboration/
โ”‚   โ”œโ”€โ”€ 00_hello_world_agent/
โ”‚   โ”œโ”€โ”€ devops_agent/
โ”‚   โ”œโ”€โ”€ energy_efficiency_management_agent/
|   โ””โ”€โ”€ ....
โ”œโ”€โ”€ src/shared/
โ”‚   โ”œโ”€โ”€ working_memory/
โ”‚   โ”œโ”€โ”€ stock_data/
โ”‚   โ”œโ”€โ”€ web_search/
|   โ””โ”€โ”€ ....
โ”œโ”€โ”€ src/utils/
โ”‚   โ”œโ”€โ”€ bedrock_agent_helper.py
|   โ”œโ”€โ”€ bedrock_agent.py
|   โ”œโ”€โ”€ knowledge_base_helper.py
|   โ””โ”€โ”€ ....

Getting Started

  1. Navigate to src/ for more details.
  2. To get started, navigate to the example you want to deploy in the examples/* directory.
  3. Follow the deployment steps in the examples/*/*/README.md file of the example.

Agents examples

Multi-agent collaboration examples

UX Demos

Best Practices

The code samples highlighted in this repository focus on showcasing different Amazon Bedrock Agents capabilities.

Please check out our two-part blog series for best practices around building generative AI applications with Amazon Bedrock Agents:

Understand Bedrock Multi-agents Collaboration concepts by reading our blog post written by Bedrock Agent's science team

๐Ÿ”— Related Links:

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

[!IMPORTANT] Examples in this repository are for demonstration purposes. Ensure proper security and testing when deploying to production environments.

Contributors :muscle:

Stargazers :star:

Forkers :raised_hands:

Jelajahi proyek terkait

Memuatโ€ฆ