Installation
Usage
How It Works
MeshAILlamaHandler implements LlamaIndex’s callback interface, listening to LLM events. On each LLM completion, it:
- Extracts the model name from the LLM event payload
- Extracts input and output token counts from the event callback data
- Infers the provider from the model name
- Sends the usage event to MeshAI (buffered, non-blocking)

