feat: optional Langfuse tracing for agent execution (#115)

Self-activating langfuse tracing via monkey-patch: independent module, zero impact when langfuse_config unset. Captures LLM generation, tool calls, token usage from SSE streams.

Co-authored-by: totoyang
This commit is contained in:
totoyang
2026-04-20 15:27:55 +08:00
committed by GitHub
parent adc702d3f8
commit 8e6270e3a3
3 changed files with 133 additions and 0 deletions

View File

@@ -403,3 +403,10 @@ native_oai_config = {
# dingtalk_client_id = 'your_app_key'
# dingtalk_client_secret = 'your_app_secret'
# dingtalk_allowed_users = ['your_staff_id'] # 留空或 ['*'] 表示允许所有钉钉用户
# 可选Langfuse 追踪。不设此项则不 import langfuse零影响
# langfuse_config = {
# 'public_key': 'pk-lf-...',
# 'secret_key': 'sk-lf-...',
# 'host': 'https://cloud.langfuse.com', # 或自托管地址
# }