public static final class ModelSettings.Builder extends GeneratedMessage.Builder<ModelSettings.Builder> implements ModelSettingsOrBuilderModel settings contains various configurations for the LLM model.
Protobuf type google.cloud.ces.v1.ModelSettings
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ModelSettings.BuilderImplements
ModelSettingsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ModelSettings build()| Returns | |
|---|---|
| Type | Description |
ModelSettings |
|
buildPartial()
public ModelSettings buildPartial()| Returns | |
|---|---|
| Type | Description |
ModelSettings |
|
clear()
public ModelSettings.Builder clear()| Returns | |
|---|---|
| Type | Description |
ModelSettings.Builder |
|
clearModel()
public ModelSettings.Builder clearModel()Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
string model = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ModelSettings.Builder |
This builder for chaining. |
clearTemperature()
public ModelSettings.Builder clearTemperature()Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model's responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
optional double temperature = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ModelSettings.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ModelSettings getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ModelSettings |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getModel()
public String getModel()Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
string model = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The model. |
getModelBytes()
public ByteString getModelBytes()Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
string model = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for model. |
getTemperature()
public double getTemperature()Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model's responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
optional double temperature = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
double |
The temperature. |
hasTemperature()
public boolean hasTemperature()Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model's responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
optional double temperature = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the temperature field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ModelSettings other)
public ModelSettings.Builder mergeFrom(ModelSettings other)| Parameter | |
|---|---|
| Name | Description |
other |
ModelSettings |
| Returns | |
|---|---|
| Type | Description |
ModelSettings.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ModelSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ModelSettings.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ModelSettings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ModelSettings.Builder |
|
setModel(String value)
public ModelSettings.Builder setModel(String value)Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
string model = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe model to set. |
| Returns | |
|---|---|
| Type | Description |
ModelSettings.Builder |
This builder for chaining. |
setModelBytes(ByteString value)
public ModelSettings.Builder setModelBytes(ByteString value)Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
string model = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for model to set. |
| Returns | |
|---|---|
| Type | Description |
ModelSettings.Builder |
This builder for chaining. |
setTemperature(double value)
public ModelSettings.Builder setTemperature(double value)Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model's responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
optional double temperature = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe temperature to set. |
| Returns | |
|---|---|
| Type | Description |
ModelSettings.Builder |
This builder for chaining. |