BigQueryAgentAnalyticsPlugin
class BigQueryAgentAnalyticsPlugin(config: BigQueryLoggerConfig, bigQuery: BigQuery = createBigQuery(config), ioContext: CoroutineContext = Dispatchers.IO, timeSource: TimeSource = TimeSource.Monotonic) : Plugin
An ADK Plugin that records agent execution events to a BigQuery table. If the destination table does not exist, the plugin automatically creates and configures the partitioned table on first use. Row inserts currently execute synchronously on the invocation path, blocking until the BigQuery write completes, so partial streaming responses are not logged.
Constructors
Link copied to clipboard
constructor(config: BigQueryLoggerConfig, bigQuery: BigQuery = createBigQuery(config), ioContext: CoroutineContext = Dispatchers.IO, timeSource: TimeSource = TimeSource.Monotonic)
Types
Link copied to clipboard
class Builder
Fluent builder for BigQueryAgentAnalyticsPlugin, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun beforeAgent(context: CallbackContext): CallbackChoice<EventActions, Content>
Link copied to clipboard
open suspend override fun beforeModel(context: CallbackContext, request: LlmRequest): CallbackChoice<LlmRequest, LlmResponse>
Link copied to clipboard
open suspend override fun beforeRun(invocationContext: InvocationContext): CallbackChoice<Unit, Content>
Link copied to clipboard
open suspend override fun beforeTool(context: ToolContext, tool: BaseTool, args: Map<String, Any?>): CallbackChoice<Map<String, Any?>, Map<String, Any?>>
Link copied to clipboard
Link copied to clipboard
open suspend override fun onModelError(context: CallbackContext, request: LlmRequest, error: Throwable): CallbackChoice<Unit, LlmResponse>
Link copied to clipboard
Link copied to clipboard
open suspend override fun onToolError(context: ToolContext, tool: BaseTool, args: Map<String, Any?>, error: Throwable): CallbackChoice<Unit, Map<String, Any?>>
Link copied to clipboard
open suspend override fun onUserMessage(invocationContext: InvocationContext, userMessage: Content): Content