Installation
Usage with LangChain
Usage with LangGraph
Usage with Chains
How It Works
MeshAICallbackHandler implements LangChain’s callback interface. The on_llm_end method:
- Extracts the model name from
LLMResult.llm_output - Extracts token usage from the response metadata
- Infers the provider from the model name
- Sends to MeshAI (buffered, non-blocking)

