LlmLogObserver
- class pipecat.observers.loggers.llm_log_observer.LLMLogObserver(*, name=None)[source]
Bases:
BaseObserver
Observer to log LLM activity to the console.
Logs all frame instances (only from/to LLM service) of:
LLMFullResponseStartFrame
LLMFullResponseEndFrame
LLMTextFrame
FunctionCallInProgressFrame
LLMMessagesFrame
OpenAILLMContextFrame
This allows you to track when the LLM starts responding, what it generates, and when it finishes.
- Parameters:
name (str | None)
- async on_push_frame(data)[source]
Handle the event when a frame is pushed from one processor to another.
This method should be implemented by subclasses to define specific behavior (e.g., logging, monitoring, debugging) when a frame is transferred through the pipeline.
- Parameters:
data (FramePushed) – The event data containing details about the frame transfer.