Class EventActions

java.lang.Object
com.google.adk.JsonBaseModel
com.google.adk.events.EventActions

public class EventActions extends JsonBaseModel
Represents the actions attached to an event.
  • Constructor Details

    • EventActions

      public EventActions()
      Default constructor for Jackson.
  • Method Details

    • skipSummarization

      public Optional<Boolean> skipSummarization()
    • setSkipSummarization

      public void setSkipSummarization(@Nullable Boolean skipSummarization)
    • setSkipSummarization

      public void setSkipSummarization(boolean skipSummarization)
    • stateDelta

      public Map<String,Object> stateDelta()
    • setStateDelta

      @Deprecated public void setStateDelta(ConcurrentMap<String,Object> stateDelta)
      Deprecated.
      Update the map returned by stateDelta() instead, and use removeStateByKey(String) to remove a key.
      Replaces the state delta.
    • removeStateByKey

      public void removeStateByKey(String key)
      Removes a key from the state delta.
      Parameters:
      key - The key to remove.
    • artifactDelta

      public Map<String,Integer> artifactDelta()
    • setArtifactDelta

      public void setArtifactDelta(Map<String,Integer> artifactDelta)
    • deletedArtifactIds

      public Set<String> deletedArtifactIds()
    • setDeletedArtifactIds

      public void setDeletedArtifactIds(Set<String> deletedArtifactIds)
    • transferToAgent

      public Optional<String> transferToAgent()
    • setTransferToAgent

      public void setTransferToAgent(@Nullable String transferToAgent)
    • escalate

      public Optional<Boolean> escalate()
    • setEscalate

      public void setEscalate(@Nullable Boolean escalate)
    • requestedAuthConfigs

      public Map<String, Map<String,Object>> requestedAuthConfigs()
    • setRequestedAuthConfigs

      public void setRequestedAuthConfigs(Map<String, ? extends Map<String,Object>> requestedAuthConfigs)
    • requestedToolConfirmations

      public Map<String, ToolConfirmation> requestedToolConfirmations()
    • setRequestedToolConfirmations

      public void setRequestedToolConfirmations(Map<String, ToolConfirmation> requestedToolConfirmations)
    • endOfAgent

      public boolean endOfAgent()
    • setEndOfAgent

      public void setEndOfAgent(boolean endOfAgent)
    • endInvocation

      @Deprecated public Optional<Boolean> endInvocation()
      Deprecated.
      Use endOfAgent() instead.
    • setEndInvocation

      @Deprecated public void setEndInvocation(boolean endInvocation)
      Deprecated.
    • agentState

      public Optional<Map<String,Object>> 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

      public void setAgentState(@Nullable Map<String,Object> agentState)
    • compaction

      public Optional<EventCompaction> compaction()
    • setCompaction

      public void setCompaction(@Nullable EventCompaction compaction)
    • setModelResponse

      public Optional<Object> setModelResponse()
      The successfully validated structured response set by the set_model_response tool. Empty when the tool was not called or its arguments failed output-schema validation.
    • setSetModelResponse

      public void setSetModelResponse(@Nullable Object setModelResponse)
    • rewindBeforeInvocationId

      public Optional<String> 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

      public void setRewindBeforeInvocationId(@Nullable String rewindBeforeInvocationId)
    • route

      @Experimental public Optional<com.google.common.collect.ImmutableList<Route>> 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

      @Experimental public void setRoute(@Nullable List<Route> route)
    • builder

      public static EventActions.Builder builder()
    • toBuilder

      public EventActions.Builder toBuilder()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object