Installation
- Python
- TypeScript
Quick Start
- Python
- TypeScript
How It Works
Fallom uses LangChain’s callback system to automatically capture:| Event | Captured Data |
|---|---|
| LLM calls | Model, messages, tokens, latency, response |
| Chain executions | Inputs, outputs, duration |
| Tool calls | Tool name, inputs, outputs |
| Agent actions | Actions taken, reasoning |
| Retriever queries | Query, retrieved documents |
| Errors | Error messages, stack traces |
Alternative: Direct Handler Creation
You can also create the callback handler directly without a session:Model A/B Testing with LangChain
Test different models in your LangChain applications:- Python
- TypeScript
LangChain Agents with Fallom
Trace your LangChain agents including all tool calls:- Python
- TypeScript
RAG Applications
Trace retrieval-augmented generation pipelines:Prompt Management with LangChain
Use Fallom’s managed prompts with LangChain:- Python
- TypeScript
Streaming Support
The callback handler works with streaming responses:Best Practices
Use one handler per conversation
Use one handler per conversation
Create a new callback handler for each user conversation or request to properly group traces:
Pass handler to all components
Pass handler to all components
For complete tracing, pass the handler to all LangChain components:
Add metadata for filtering
Add metadata for filtering
Use metadata and tags to organize traces in the dashboard:

