java.lang.Object
com.google.genai.gaos.models.interactions.Source

public class Source extends Object
Source

A source to be mounted into the environment.

  • Constructor Details

    • Source

      public Source(@Nullable String content, @Nullable String encoding, @Nullable String source, @Nullable String target, @Nullable SourceType type)
    • Source

      public Source()
  • Method Details

    • content

      public Optional<String> content()
      The inline content if `type` is `INLINE`.
    • encoding

      public Optional<String> encoding()
      Optional encoding for inline content (e.g. `base64`).
    • source

      public Optional<String> source()
      The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path.
    • target

      public Optional<String> target()
      Where the source should appear in the environment.
    • type

      public Optional<SourceType> type()
    • builder

      public static Source.Builder builder()
    • withContent

      public Source withContent(@Nullable String content)
      The inline content if `type` is `INLINE`.
    • withEncoding

      public Source withEncoding(@Nullable String encoding)
      Optional encoding for inline content (e.g. `base64`).
    • withSource

      public Source withSource(@Nullable String source)
      The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path.
    • withTarget

      public Source withTarget(@Nullable String target)
      Where the source should appear in the environment.
    • withType

      public Source withType(@Nullable SourceType 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