🪢 feat: Add Langfuse Tracing Support (#10292)

* 📦 feat: `@librechat/agents` v2.4.87 for LangFuse Support

* 📦 chore: update @librechat/agents to v2.4.88 in package.json and package-lock.json

* 📦 chore: update @librechat/agents to v2.4.89

* feat: Add runName configuration to AgentClient and Memory agent for improved tracing
This commit is contained in:
Danny Avila 2025-10-29 12:23:09 -04:00 committed by GitHub
parent 0e05ff484f
commit 70ff6e94f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 597 additions and 13 deletions

View file

@ -775,6 +775,7 @@ class AgentClient extends BaseClient {
const agentsEConfig = appConfig.endpoints?.[EModelEndpoint.agents];
config = {
runName: 'AgentRun',
configurable: {
thread_id: this.conversationId,
last_agent_index: this.agentConfigs?.size ?? 0,
@ -1233,6 +1234,10 @@ class AgentClient extends BaseClient {
handleLLMEnd,
},
],
configurable: {
thread_id: this.conversationId,
user_id: this.user ?? this.options.req.user?.id,
},
},
});