public static final class Generator.ModelParameter extends GeneratedMessageV3 implements Generator.ModelParameterOrBuilder
Parameters to be passed to the LLM. If not set, default values will be
used.
Protobuf type google.cloud.dialogflow.cx.v3.Generator.ModelParameter
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
MAX_DECODE_STEPS_FIELD_NUMBER
public static final int MAX_DECODE_STEPS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TEMPERATURE_FIELD_NUMBER
public static final int TEMPERATURE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TOP_K_FIELD_NUMBER
public static final int TOP_K_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TOP_P_FIELD_NUMBER
public static final int TOP_P_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Generator.ModelParameter getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Generator.ModelParameter.Builder newBuilder()
newBuilder(Generator.ModelParameter prototype)
public static Generator.ModelParameter.Builder newBuilder(Generator.ModelParameter prototype)
public static Generator.ModelParameter parseDelimitedFrom(InputStream input)
public static Generator.ModelParameter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Generator.ModelParameter parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Generator.ModelParameter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Generator.ModelParameter parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Generator.ModelParameter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Generator.ModelParameter parseFrom(CodedInputStream input)
public static Generator.ModelParameter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Generator.ModelParameter parseFrom(InputStream input)
public static Generator.ModelParameter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Generator.ModelParameter parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Generator.ModelParameter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Generator.ModelParameter> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Generator.ModelParameter getDefaultInstanceForType()
getMaxDecodeSteps()
public int getMaxDecodeSteps()
The maximum number of tokens to generate.
optional int32 max_decode_steps = 2;
Returns |
Type |
Description |
int |
The maxDecodeSteps.
|
getParserForType()
public Parser<Generator.ModelParameter> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getTemperature()
public float getTemperature()
The temperature used for sampling. Temperature sampling occurs after both
topP and topK have been applied.
Valid range: [0.0, 1.0]
Low temperature = less random. High temperature = more random.
optional float temperature = 1;
Returns |
Type |
Description |
float |
The temperature.
|
getTopK()
If set, the sampling process in each step is limited to the top_k tokens
with highest probabilities.
Valid range: [1, 40] or 1000+.
Small topK = less random. Large topK = more random.
optional int32 top_k = 4;
Returns |
Type |
Description |
int |
The topK.
|
getTopP()
If set, only the tokens comprising the top top_p probability mass are
considered. If both top_p and top_k are
set, top_p will be used for further refining candidates selected with
top_k.
Valid range: (0.0, 1.0].
Small topP = less random. Large topP = more random.
optional float top_p = 3;
Returns |
Type |
Description |
float |
The topP.
|
hasMaxDecodeSteps()
public boolean hasMaxDecodeSteps()
The maximum number of tokens to generate.
optional int32 max_decode_steps = 2;
Returns |
Type |
Description |
boolean |
Whether the maxDecodeSteps field is set.
|
hasTemperature()
public boolean hasTemperature()
The temperature used for sampling. Temperature sampling occurs after both
topP and topK have been applied.
Valid range: [0.0, 1.0]
Low temperature = less random. High temperature = more random.
optional float temperature = 1;
Returns |
Type |
Description |
boolean |
Whether the temperature field is set.
|
hasTopK()
If set, the sampling process in each step is limited to the top_k tokens
with highest probabilities.
Valid range: [1, 40] or 1000+.
Small topK = less random. Large topK = more random.
optional int32 top_k = 4;
Returns |
Type |
Description |
boolean |
Whether the topK field is set.
|
hasTopP()
If set, only the tokens comprising the top top_p probability mass are
considered. If both top_p and top_k are
set, top_p will be used for further refining candidates selected with
top_k.
Valid range: (0.0, 1.0].
Small topP = less random. Large topP = more random.
optional float top_p = 3;
Returns |
Type |
Description |
boolean |
Whether the topP field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Generator.ModelParameter.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Generator.ModelParameter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Generator.ModelParameter.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides