Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

View module source on GitHub

instrument_livekit

def instrument_livekit(logger: Logger, callback: MaximLiveKitCallback = None)
Instrument LiveKit classes with logging. This function adds logging instrumentation to LiveKit classes (Agent, JobContext, LLM) by wrapping their methods with logging decorators. It logs method calls with their arguments and keyword arguments. The instrumentation:
  1. Wraps all Agent methods starting with β€œon_”
  2. Wraps all JobContext methods (except special methods)
  3. Wraps all LLM methods (except special methods)