Visualize multi-step reasoning, debug infinite tool-calling loops, and track token usage across complex LangChain workflows.
import { ChatOpenAI } from "@langchain/openai";
import { TrasysCallbackHandler } from "@trasys/langchain";
const model = new ChatOpenAI({
callbacks: [new TrasysCallbackHandler({ project: "customer-support-bot" })]
});
// Full traces including tool calls and retrieval are now logged!LangChain agents can easily get stuck in ReAct loops. Trasys detects repetitive tool failures and can auto-break the chain to save you money.
Understand exactly where time is spent. See the exact breakdown between the planner LLM, the vector DB retrieval, and the final synthesis.
Yes. Trasys captures the raw inputs and outputs of every chain step, including the exact context retrieved from your Vector DB.