Python
Installation
Please use Python version 3.10 or higher to ensure compatibility.
pip install lunary
Setup
Add the LUNARY_PUBLIC_KEY
to your environment variables.
export LUNARY_PUBLIC_KEY="PUBLIC KEY"
You can use dotenv to load the environment variables from a .env
file.
from dotenv import load_dotenvload_dotenv()
Next steps
LangChain
Usage with LangChain.
OpenAI
Automatically track your OpenAI calls.
User Tracking
Identify your users.
Tagging
Segment your queries with tags.
Manual Integration
Learn how to use track_event()
Agents & Tools
Enable traces on custom agents & tools
API Reference
Full list of methods and classes.
Examples
Find examples of usage on GitHub.