Class ModelSettings.Builder (0.1.0)

public static final class ModelSettings.Builder extends GeneratedMessage.Builder<ModelSettings.Builder> implements ModelSettingsOrBuilder

Model settings contains various configurations for the LLM model.

Protobuf type google.cloud.ces.v1.ModelSettings

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ModelSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ModelSettings.Builder
Overrides

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 String

The 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 ByteString

The 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 double

The temperature to set.

Returns
Type Description
ModelSettings.Builder

This builder for chaining.