Installation
Usage
Option 1: Global Tracking
Option 2: Prompt Filter
How It Works
MeshAI integrates via Semantic Kernel’s function invocation filter system. TheMeshAIPromptFilter intercepts prompt render and completion events:
- Extracts the model name from the AI service configuration
- Extracts token counts from the completion result metadata
- Infers the provider from the model or service type
- Sends the usage event to MeshAI (buffered, non-blocking)

