Python
Installation
Please use Python version 3.10 or higher to ensure compatibility.
Setup
Add the LUNARY_PUBLIC_KEY
to your environment variables.
You can use dotenv to load the environment variables from a .env
file.
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.