OpenLIT

Monitoring Agents and Swarms with OpenLIT

OpenLIT allows you to simplify your AI development workflow, especially for Generative AI and LLMs. It streamlines essential tasks like experimenting with LLMs, organizing and versioning prompts, and securely handling API keys.

Install OpenLIT

pip install openlit

or

poetry add openlit

Usage

Add it to your code:

import os

from dotenv import load_dotenv
load_dotenv()

import openlit
openlit.init()

from swarmzero import Agent, Swarm
# ...

Set the environment variable:

export OTEL_EXPORTER_OTLP_ENDPOINT = "YOUR_OTEL_ENDPOINT"

Last updated

Was this helpful?