# EventActions

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.

## Constructors

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

## Properties

agentState
Link copied to clipboard
var agentState: TypedData?

The state of the agent for resumability.

artifactDelta
Link copied to clipboard
val artifactDelta: MutableMap<String, Int>

Indicates that the event is updating an artifact. The key is the filename, and the value is the version.

endOfAgent
Link copied to clipboard
var endOfAgent: Boolean

If true, the current agent has finished its current run. Note that there can be multiple events with endOfAgent set to `true` for the same agent within one invocation when there is a loop. This should only be set by the ADK workflow.

escalate
Link copied to clipboard
var escalate: Boolean

The agent is escalating to a higher level agent.

requestedToolConfirmations
Link copied to clipboard
val requestedToolConfirmations: MutableMap<String, ToolConfirmation>

A map of tool confirmations requested by this event, keyed by function call ID.

rewindBeforeInvocationId
Link copied to clipboard
var rewindBeforeInvocationId: String?

If set, the agent will rewind history before the specified invocation ID.

skipSummarization
Link copied to clipboard
var skipSummarization: Boolean

If true, it won't call the model to summarize the function response. Only used for a function response event.

stateDelta
Link copied to clipboard
val stateDelta: MutableMap<String, Any>

Indicates that the event is updating the state with the given delta.

transferToAgent
Link copied to clipboard
var transferToAgent: String?

If set, the event transfers to the specified agent.

## Functions

mergeWith
Link copied to clipboard
fun mergeWith(other: EventActions): EventActions

Merges this EventActions with another one.

removeStateByKey
Link copied to clipboard
fun removeStateByKey(key: String)

Removes a key from the state delta.