Class Source
java.lang.Object
com.google.genai.gaos.models.interactions.Source
Source
A source to be mounted into the environment.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Source.Builderbuilder()content()The inline content if `type` is `INLINE`.encoding()Optional encoding for inline content (e.g.booleaninthashCode()source()The source of the environment.target()Where the source should appear in the environment.toString()type()withContent(String content) The inline content if `type` is `INLINE`.withEncoding(String encoding) Optional encoding for inline content (e.g.withSource(String source) The source of the environment.withTarget(String target) Where the source should appear in the environment.withType(SourceType type)
-
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
The inline content if `type` is `INLINE`. -
encoding
Optional encoding for inline content (e.g. `base64`). -
source
The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path. -
target
Where the source should appear in the environment. -
type
-
builder
-
withContent
The inline content if `type` is `INLINE`. -
withEncoding
Optional encoding for inline content (e.g. `base64`). -
withSource
The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path. -
withTarget
Where the source should appear in the environment. -
withType
-
equals
-
hashCode
public int hashCode() -
toString
-