Class Interaction

java.lang.Object
com.google.genai.gaos.models.triggers.Interaction

public class Interaction extends Object
Interaction

Required. The interaction request template to be executed.

  • Method Details

    • of

      public static Interaction of(CreateAgentInteraction value)
    • of

      public static Interaction of(CreateModelInteraction value)
    • createAgentInteraction

      public Optional<CreateAgentInteraction> createAgentInteraction()
      Returns an Optional containing the value if it is of type CreateAgentInteraction, otherwise returns an empty Optional.
      Returns:
      an Optional containing the CreateAgentInteraction value, or empty if not of this type
    • createModelInteraction

      public Optional<CreateModelInteraction> createModelInteraction()
      Returns an Optional containing the value if it is of type CreateModelInteraction, otherwise returns an empty Optional.
      Returns:
      an Optional containing the CreateModelInteraction value, or empty if not of this type
    • asJson

      public Optional<com.fasterxml.jackson.databind.JsonNode> asJson()
      Returns an Optional containing the value as a JsonNode. This accessor returns the raw JSON when the value doesn't match any of the defined union types.
      Returns:
      an Optional containing the JsonNode value, or empty if value matched a known type
    • 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