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 JsonBaseModel
fromJsonNode, fromJsonString, getMapper, toJson, toJsonNode, toJsonStringModifier and TypeMethodDescriptionstatic <T extends JsonBaseModel>
TfromJsonNode(com.fasterxml.jackson.databind.JsonNode jsonNode, Class<T> clazz) Deserializes a JsonNode to an object of the given type.static <T extends JsonBaseModel>
TfromJsonString(String jsonString, Class<T> clazz) Deserializes a Json string to an object of the given type.static com.fasterxml.jackson.databind.ObjectMapperReturns the mutable ObjectMapper instance used by ADK.toJson()Serializes this object (i.e., the ObjectMappper instance used by ADK) to a Json string.protected static com.fasterxml.jackson.databind.JsonNodetoJsonNode(Object object) Serializes an object to a JsonNode.static StringtoJsonString(Object object) Serializes an object to a Json string.
-
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
-
setAgentState
-
compaction
-
setCompaction
-
setModelResponse
-
setSetModelResponse
-
rewindBeforeInvocationId
-
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
-
endOfAgent()instead.