cache-cost-tracking
Installation
SKILL.md
Cache Cost Tracking
Monitor LLM costs and cache effectiveness.
Langfuse Automatic Tracking
from langfuse.decorators import observe, langfuse_context
@observe(as_type="generation")
async def call_llm_with_cache(
prompt: str,
agent_type: str,
analysis_id: UUID
) -> str:
"""LLM call with automatic cost tracking."""