llm_log_observer
LLM logging observer for Pipecat.
- class pipecat.observers.loggers.llm_log_observer.LLMLogObserver(*, name: str | None = None, **kwargs)[source]
Bases:
BaseObserverObserver to log LLM activity to the console.
Logs all frame instances (only from/to LLM service) of:
LLMFullResponseStartFrame
LLMFullResponseEndFrame
LLMTextFrame
FunctionCallInProgressFrame
This allows you to track when the LLM starts responding, what it generates, and when it finishes.
- async on_push_frame(data: FramePushed)[source]
Handle frame push events and log LLM-related activities.
- Parameters:
data – The frame push event data containing source, destination, frame, direction, and timestamp information.