java.lang.Object
com.google.genai.gaos.models.interactions.StepStop
All Implemented Interfaces:
InteractionSSEEvent

public class StepStop extends Object implements InteractionSSEEvent
  • Constructor Details

    • StepStop

      public StepStop(@Nullable String eventId, int index, @Nullable Usage stepUsage, @Nullable Usage usage)
    • StepStop

      public StepStop(int index)
  • Method Details

    • eventId

      public Optional<String> eventId()
      The event_id token to be used to resume the interaction stream, from this event.
    • eventType

      public String eventType()
      Specified by:
      eventType in interface InteractionSSEEvent
    • index

      public Optional<Integer> index()
    • stepUsage

      public Optional<Usage> stepUsage()
      Statistics on the interaction request's token usage.
    • usage

      public Optional<Usage> usage()
      Statistics on the interaction request's token usage.
    • builder

      public static StepStop.Builder builder()
    • withEventId

      public StepStop withEventId(@Nullable String eventId)
      The event_id token to be used to resume the interaction stream, from this event.
    • withIndex

      public StepStop withIndex(int index)
    • withStepUsage

      public StepStop withStepUsage(@Nullable Usage stepUsage)
      Statistics on the interaction request's token usage.
    • withUsage

      public StepStop withUsage(@Nullable Usage usage)
      Statistics on the interaction request's token usage.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object