Interface Assistant.GenerationConfigOrBuilder (0.90.0)

public static interface Assistant.GenerationConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAllowedModelIds(int index)

public abstract String getAllowedModelIds(int index)

Optional. The list of models that are allowed to be used for assistant.

repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allowedModelIds at the given index.

getAllowedModelIdsBytes(int index)

public abstract ByteString getAllowedModelIdsBytes(int index)

Optional. The list of models that are allowed to be used for assistant.

repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allowedModelIds at the given index.

getAllowedModelIdsCount()

public abstract int getAllowedModelIdsCount()

Optional. The list of models that are allowed to be used for assistant.

repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of allowedModelIds.

getAllowedModelIdsList()

public abstract List<String> getAllowedModelIdsList()

Optional. The list of models that are allowed to be used for assistant.

repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<String>

A list containing the allowedModelIds.

getDefaultLanguage()

public abstract String getDefaultLanguage()

The default language to use for the generation of the assistant response. Use an ISO 639-1 language code such as en. If not specified, the language will be automatically detected.

string default_language = 4;

Returns
Type Description
String

The defaultLanguage.

getDefaultLanguageBytes()

public abstract ByteString getDefaultLanguageBytes()

The default language to use for the generation of the assistant response. Use an ISO 639-1 language code such as en. If not specified, the language will be automatically detected.

string default_language = 4;

Returns
Type Description
ByteString

The bytes for defaultLanguage.

getDefaultModelId()

public abstract String getDefaultModelId()

Optional. The default model to use for assistant.

string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The defaultModelId.

getDefaultModelIdBytes()

public abstract ByteString getDefaultModelIdBytes()

Optional. The default model to use for assistant.

string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for defaultModelId.

getSystemInstruction()

public abstract Assistant.GenerationConfig.SystemInstruction getSystemInstruction()

System instruction, also known as the prompt preamble for LLM calls. See also https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions

.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3;

Returns
Type Description
Assistant.GenerationConfig.SystemInstruction

The systemInstruction.

getSystemInstructionOrBuilder()

public abstract Assistant.GenerationConfig.SystemInstructionOrBuilder getSystemInstructionOrBuilder()

System instruction, also known as the prompt preamble for LLM calls. See also https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions

.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3;

Returns
Type Description
Assistant.GenerationConfig.SystemInstructionOrBuilder

hasSystemInstruction()

public abstract boolean hasSystemInstruction()

System instruction, also known as the prompt preamble for LLM calls. See also https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions

.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3;

Returns
Type Description
boolean

Whether the systemInstruction field is set.