Interface EvaluationConfig.SmartComposeConfigOrBuilder (4.50.0)

public static interface EvaluationConfig.SmartComposeConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAllowlistDocument()

public abstract String getAllowlistDocument()

The allowlist document resource name. Format: projects/<Project ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>. Only used for smart compose model.

string allowlist_document = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The allowlistDocument.

getAllowlistDocumentBytes()

public abstract ByteString getAllowlistDocumentBytes()

The allowlist document resource name. Format: projects/<Project ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>. Only used for smart compose model.

string allowlist_document = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for allowlistDocument.

getMaxResultCount()

public abstract int getMaxResultCount()

Required. The model to be evaluated can return multiple results with confidence score on each query. These results will be sorted by the descending order of the scores and we only keep the first max_result_count results as the final results to evaluate.

int32 max_result_count = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The maxResultCount.