Class ModelOutputStep

java.lang.Object
com.google.genai.gaos.models.interactions.ModelOutputStep
All Implemented Interfaces:
Step

public class ModelOutputStep extends Object implements Step
ModelOutputStep

Output generated by the model.

  • Constructor Details

    • ModelOutputStep

      public ModelOutputStep(@Nullable List<Content> content, @Nullable Status error)
    • ModelOutputStep

      public ModelOutputStep()
  • Method Details

    • content

      public Optional<List<Content>> content()
    • error

      public Optional<Status> error()
      The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details.

      You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).

    • type

      public String type()
      Specified by:
      type in interface Step
    • builder

      public static ModelOutputStep.Builder builder()
    • withContent

      public ModelOutputStep withContent(@Nullable List<Content> content)
    • withError

      public ModelOutputStep withError(@Nullable Status error)
      The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details.

      You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).

    • 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