Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Microsoft Agent Framework + Galileo Example

This is an example project demonstrating how to use Galileo with the Microsoft Agent Framework. The Microsoft Agent Framework has built-in OpenTelemetry instrumentation, so traces are captured automatically using the GalileoSpanProcessor from the Galileo SDK.

Getting Started

To get started with this project, you'll need to have Python 3.12 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 OpenAI and Galileo values:

# OpenAI environment variables
OPENAI_API_KEY=

# 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 are 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:

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