Package-level declarations
Types
Link copied to clipboard
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. Rows are queued and written in the background in batches with the BigQuery Storage Write API; call close when done to write the rows still queued.
Link copied to clipboard
data class BigQueryLoggerConfig @JvmOverloads constructor(val projectId: String, val datasetId: String, val enabled: Boolean = true, val location: String = "US", val tableName: String = "agent_events", val credentials: Credentials? = null, val eventAllowlist: Set<String> = emptySet(), val eventDenylist: Set<String> = emptySet(), val maxContentLength: Int = 500 * 1024, val clusteringFields: List<String> = BigQuerySchema.getDefaultClusteringFields(), val logMultiModalContent: Boolean = true, val logSessionMetadata: Boolean = true, val customTags: Map<String, Any?> = emptyMap(), val autoSchemaUpgrade: Boolean = true, val createViews: Boolean = false, val viewPrefix: String = "v", val contentFormatter: (Any, String) -> Any?? = null, val retryConfig: RetryConfig = RetryConfig(), val batchSize: Int = 1, val batchFlushInterval: Duration = Duration.ofSeconds(1), val shutdownTimeout: Duration = Duration.ofSeconds(10), val queueMaxSize: Int, val flushOnRunEnd: Boolean = true, val gcsBucketName: String? = null, val connectionId: String? = null)
Configuration for the BigQueryAgentAnalyticsPlugin.
Link copied to clipboard
object BigQuerySchema
Utility for defining the BigQuery events table schema.
Link copied to clipboard
data class RetryConfig @JvmOverloads constructor(val maxRetries: Int = 3, val initialDelay: Duration = Duration.ofSeconds(1), val multiplier: Double = 2.0, val maxDelay: Duration = Duration.ofSeconds(10))
How BigQueryAgentAnalyticsPlugin retries a batch of rows that BigQuery failed to write.