
Setup the SDK
Open a thread
Start by opening a thread.- Javascript
- Python
- Javascript
- Python
tags
param:
- Javascript
- Python
Track messages
Now you can track messages. The supported roles areassistant
, user
, system
, & tool
.
- Javascript
- Python
Track custom events
You can track custom events that happen within your chatbot. This can include things like:- opening a document
- clicking a button
- submitting a form
- user activity or inactivity
- other events that you want to track
- Javascript
- Python
Capture user feedback
Finally, you can track user feedback on bot replies: The ID is the same as the one returned bytrackMessage
.
- Javascript
- Python
null
as the feedback data.
- Javascript
- Python
Reconciliate with LLM calls & agents
To take full advantage of Lunary’s tracing capabilities, you can reconcile your LLM and agents runs with the messages. We will automatically reconciliate messages with runs.- Javascript
- Python
- Javascript
- Python