Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Strands Agents + OpenTelemetry Example Project

This is an example project demonstrating how to use Galileo with the Strands Agent SDK, using AWS Bedrock as the LLM provider. This uses the simple quickstart from the Strands Agents documentation, and adds Galileo logging.

Getting Started

To get started with this project, you'll need to have Python 3.10 or later installed. You can then install the required dependencies in a virtual environment:

pip install -r requirements.txt

Configure environment variables

You will need to configure environment variables to use this project. Copy the .env.example file to .env, then update the environment variables in the .env file with your AWS and Galileo values:

# AWS environment variables
AWS_BEARER_TOKEN_BEDROCK=

# Galileo environment variables
# GALILEO_API_ENDPOINT=    # Optional, only set this if you are using a custom Galileo deployment
GALILEO_API_KEY=
GALILEO_PROJECT=
GALILEO_LOG_STREAM=

For the GALILEO_API_ENDPOINT, you only need to set this if you are using a custom Galileo deployment. There is no need to set this if you ae using app.galileo.ai. This endpoint is different to the console URL that you would normally use. See the Galileo OpenTelemetry documentation for more details.

Usage

Once the dependencies are installed, you can run the example application:

python agent.py

Traces will be captured and logged to Galileo.

Project Structure

The project structure is as follows:

strands-agents/
├─ env.example         # List of environment variables
├── agent.py           # The main agent application
├── requirements.txt   # Python project requirements
└── README.md          # Project documentation