Skip to content
项目

awslabs/amazon-bedrock-agent-samples

在 GitHub 查看

关于

使用 Amazon Bedrock Agents 🤖 及其功能的 Jupyter 示例笔记本 📓 和代码脚本 💻

学习与教育

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

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:

探索相关项目

加载中…