Package com.google.adk.events
Class EventActions
java.lang.Object
com.google.adk.JsonBaseModel
com.google.adk.events.EventActions
Represents the actions attached to an event.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe checkpointed state of the authoring agent at this event, used for session resumability.static EventActions.Builderbuilder()Deprecated.booleanbooleanescalate()inthashCode()voidremoveStateByKey(String key) Removes a key from the state delta.On a rewind event, the ID of the invocation to rewind before: the history from that invocation up to the rewind event is dropped.route()For a workflow node, returns the routes this event selects; an edge is followed when it has one of these routes.voidsetAgentState(@Nullable Map<String, Object> agentState) voidsetArtifactDelta(Map<String, Integer> artifactDelta) voidsetCompaction(@Nullable EventCompaction compaction) voidsetDeletedArtifactIds(Set<String> deletedArtifactIds) voidsetEndInvocation(boolean endInvocation) Deprecated.UsesetEndOfAgent(boolean)instead.voidsetEndOfAgent(boolean endOfAgent) voidsetEscalate(@Nullable Boolean escalate) The successfully validated structured response set by theset_model_responsetool.voidvoidsetRequestedToolConfirmations(Map<String, ToolConfirmation> requestedToolConfirmations) voidsetRewindBeforeInvocationId(@Nullable String rewindBeforeInvocationId) voidvoidsetSetModelResponse(@Nullable Object setModelResponse) voidsetSkipSummarization(boolean skipSummarization) voidsetSkipSummarization(@Nullable Boolean skipSummarization) voidsetStateDelta(ConcurrentMap<String, Object> stateDelta) Deprecated.Update the map returned bystateDelta()instead, and useremoveStateByKey(String)to remove a key.voidsetTransferToAgent(@Nullable String transferToAgent) Methods inherited from class com.google.adk.JsonBaseModel
fromJsonNode, fromJsonString, getMapper, toJson, toJsonNode, toJsonString
-
Constructor Details
-
EventActions
public EventActions()Default constructor for Jackson.
-
-
Method Details
-
skipSummarization
-
setSkipSummarization
-
setSkipSummarization
public void setSkipSummarization(boolean skipSummarization) -
stateDelta
-
setStateDelta
Deprecated.Update the map returned bystateDelta()instead, and useremoveStateByKey(String)to remove a key.Replaces the state delta. -
removeStateByKey
Removes a key from the state delta.- Parameters:
key- The key to remove.
-
artifactDelta
-
setArtifactDelta
-
deletedArtifactIds
-
setDeletedArtifactIds
-
transferToAgent
-
setTransferToAgent
-
escalate
-
setEscalate
-
requestedAuthConfigs
-
setRequestedAuthConfigs
-
requestedToolConfirmations
-
setRequestedToolConfirmations
-
endOfAgent
public boolean endOfAgent() -
setEndOfAgent
public void setEndOfAgent(boolean endOfAgent) -
endInvocation
Deprecated.UseendOfAgent()instead. -
setEndInvocation
Deprecated.UsesetEndOfAgent(boolean)instead. -
agentState
The checkpointed state of the authoring agent at this event, used for session resumability. Only set by ADK workflow/agent machinery on resumable invocations. -
setAgentState
-
compaction
-
setCompaction
-
setModelResponse
The successfully validated structured response set by theset_model_responsetool. Empty when the tool was not called or its arguments failed output-schema validation. -
setSetModelResponse
-
rewindBeforeInvocationId
On a rewind event, the ID of the invocation to rewind before: the history from that invocation up to the rewind event is dropped. ADK Java does not apply rewinds itself; the field exists for runtimes that do, such as ADK Kotlin. -
setRewindBeforeInvocationId
-
route
For a workflow node, returns the routes this event selects; an edge is followed when it has one of these routes. The value is optional because an empty list is still a routing decision that selects no route, whereas an absent value means the event makes no routing decision. When merging, an empty list replaces the existing routes, while an absent value keeps them. -
setRoute
-
builder
-
toBuilder
-
equals
-
hashCode
public int hashCode()
-
endOfAgent()instead.