# Package-level declarations

## Types

Event
Link copied to clipboard
data class Event(val id: String = Uuid.random(), val invocationId: String? = null, val author: String, val content: Content? = null, val actions: EventActions = EventActions(), val longRunningToolIds: Set<String> = emptySet(), val partial: Boolean = false, val turnComplete: Boolean = false, val errorCode: String? = null, val errorMessage: String? = null, val finishReason: FinishReason? = null, val usageMetadata: UsageMetadata? = null, val avgLogProbs: Double? = null, val interrupted: Boolean = false, val branch: String? = null, val groundingMetadata: GroundingMetadata? = null, val modelVersion: String? = null, val citationMetadata: CitationMetadata? = null, val customMetadata: Map<String, Any>? = null, val timestamp: Long = Clock.System.now().toEpochMilliseconds())

Represents an event in a session.

EventActions
Link copied to clipboard
data class EventActions(var skipSummarization: Boolean = false, val stateDelta: MutableMap<String, Any> = concurrentMutableMapOf(), val artifactDelta: MutableMap<String, Int> = concurrentMutableMapOf(), var transferToAgent: String? = null, var escalate: Boolean = false, var endOfAgent: Boolean = false, val requestedToolConfirmations: MutableMap<String, ToolConfirmation> = concurrentMutableMapOf(), var rewindBeforeInvocationId: String? = null, var agentState: TypedData? = null)

Represents the actions attached to an event.

ToolConfirmation
Link copied to clipboard
data class ToolConfirmation(val confirmed: Boolean, val payload: Any? = null, val hint: String? = null)

Represents a tool confirmation configuration.