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.
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.txtYou 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.
Once the dependencies are installed, you can run the example application:
python agent.pyTraces will be captured and logged to Galileo.
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