python/example_code/bedrock-agent/README.md
Shows how to use the AWS SDK for Python (Boto3) to work with Amazon Bedrock Agents.
<!--custom.overview.start--> <!--custom.overview.end-->Amazon Bedrock Agents offer you the ability to build and configure autonomous agents in your application.
For prerequisites, see the README in the python folder.
Install the packages required by these examples by running the following in a virtual environment:
python -m pip install -r requirements.txt
Code excerpts that show you how to call individual service functions.
Code examples that show you how to accomplish a specific task by calling multiple functions within the same service.
<!--custom.examples.start--> <!--custom.examples.end-->This example shows you how to do the following:
The flow includes a prompt node that generates a playlist for a chosen genre and number of songs. The example creates the nodes and permissions for the flow.
<!--custom.scenario_prereqs.bedrock-agent_GettingStartedWithBedrockFlows.end-->Start the example by running the following at a command prompt:
python flows/playlist_flow.py
This example shows you how to do the following:
Start the example by running the following at a command prompt:
python prompts/scenario_get_started_with_prompts.py
This example shows you how to do the following:
Start the example by running the following at a command prompt:
python scenario_get_started_with_agents.py
⚠ Running tests might result in charges to your AWS account.
To find instructions for running these tests, see the README
in the python folder.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0