@uservane/openai-agents/langfuse: installLangfuseBridge
Function: installLangfuseBridge()
Section titled “Function: installLangfuseBridge()”installLangfuseBridge(
opts):Promise<UserVaneLangfuseExporter>
Defined in: langfuse.d.ts:139
Install the scoped Langfuse bridge as the Agents SDK trace processor set.
Replaces existing processors via setTraceProcessors([BatchTraceProcessor(exporter)]).
Returns the exporter so tests can inspect lastOutcome.
import { installLangfuseBridge } from "@uservane/openai-agents/langfuse";
installLangfuseBridge({ langfuse: { publicKey: process.env.LANGFUSE_PUBLIC_KEY!, secretKey: process.env.LANGFUSE_SECRET_KEY!, },});// then run agents with groupId set to your session idParameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<UserVaneLangfuseExporter>