From 229e20d0732c9775cbbacb441a9958a26211e4e2 Mon Sep 17 00:00:00 2001 From: Roberto Musso Date: Mon, 23 Mar 2026 00:25:42 +0100 Subject: [PATCH] docs: add Langfuse integration TODO for batch-agent service --- services/batch-agent/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/batch-agent/README.md b/services/batch-agent/README.md index 6c669ee..b01cba6 100644 --- a/services/batch-agent/README.md +++ b/services/batch-agent/README.md @@ -18,3 +18,6 @@ Owns: agent_runner, journey builder, filesystem_agent, integrations (Gmail, MS G - Publish: `ws:out:{user_id}` (journey replies + tool calls) - BRPOP: `tool:result:{call_id}` (30s timeout) - SET+EX: `journey:{user_id}` (session state, TTL 1800s) + +## TODO +- [ ] Integrate Langfuse tracing (reuse `services/chat/app/tracing.py` pattern — `trace_span()`, `get_langfuse_callback()`, prompt management). Each batch agent run should create a trace with input/output, link prompts, and pass the LangChain `CallbackHandler` to LLM calls.