Class ErrorEvent

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

public class ErrorEvent extends Object implements InteractionSSEEvent
  • Constructor Details

    • ErrorEvent

      public ErrorEvent(@Nullable Error error, @Nullable String eventId)
    • ErrorEvent

      public ErrorEvent()
  • Method Details

    • error

      public Optional<Error> error()
      Error message from an interaction.
    • 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
    • builder

      public static ErrorEvent.Builder builder()
    • withError

      public ErrorEvent withError(@Nullable Error error)
      Error message from an interaction.
    • withEventId

      public ErrorEvent withEventId(@Nullable String eventId)
      The event_id token to be used to resume the interaction stream, from this event.
    • 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