Improve agent loop observability in Langfuse by including additional metadata in calls to LiteLLM #7172
mattflo
started this conversation in
Feature Requests & Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The LiteLLM and Langfuse integration support sending some special metadata that allows for better relating and aggregating of trace data in Langfuse:
If LibreChat could include some of these in calls to LiteLLM, that would facilitate much better visibility of agent loop activity.
conversationId
->session_id
messageId
of the current or nearest ancestor message withsender='User'
->trace_id
user
->trace_user_id
There's also support to pass along
generation_id
,generation_name
, andtags
, but I'm not sure what values make sense to pass for these.Beta Was this translation helpful? Give feedback.
All reactions