DebugLoggingPlugin
A plugin that captures complete debug information to a file.
This plugin records detailed interaction data including:
LLM requests (model, system instruction, contents, tools)
LLM responses (content, usage metadata, errors)
Function calls with arguments
Function responses with results
Events yielded from the runner
Session state at the end of each invocation
The output is written as YAML for human readability. Each invocation is appended to the file as a separate YAML document (separated by ---). Unlike LoggingPlugin, which prints truncated summaries to the console, this plugin captures the data in full.
CAUTION: The plugin writes raw requests / responses, including user prompts, tool arguments, and session state, to disk. Be mindful of sensitive data disclosure and protect the output file accordingly.
Types
Fluent builder for DebugLoggingPlugin, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.
Properties
Functions
Callback executed after a specific agent finishes its processing.
Callback executed after an LLM response is received.
Callback executed after the ADK runner completes its execution.
Callback executed before a specific agent starts processing.
Callback executed before an LLM request is sent.
Callback executed before the ADK runner starts the main execution loop.
Callback executed before a tool is invoked.
Callback executed when an event is yielded by an agent during execution.
Callback executed when an error occurs during an LLM interaction.
Callback executed when an error occurs during a tool invocation.
Callback executed when a user message is received before an invocation starts.