Google Cloud Ces V1 Client - Class RewriterConfig (0.1.0)

Reference documentation and code samples for the Google Cloud Ces V1 Client class RewriterConfig.

Rewriter configuration.

Generated from protobuf message google.cloud.ces.v1.DataStoreTool.RewriterConfig

Namespace

Google \ Cloud \ Ces \ V1 \ DataStoreTool

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ model_settings
Google\Cloud\Ces\V1\ModelSettings

Required. Configurations for the LLM model.

↳ prompt
string

Optional. The prompt definition. If not set, default prompt will be used.

↳ disabled
bool

Optional. Whether the rewriter is disabled.

getModelSettings

Required. Configurations for the LLM model.

Returns
Type
Description

hasModelSettings

clearModelSettings

setModelSettings

Required. Configurations for the LLM model.

Parameter
Name
Description
Returns
Type
Description
$this

getPrompt

Optional. The prompt definition. If not set, default prompt will be used.

Returns
Type
Description
string

setPrompt

Optional. The prompt definition. If not set, default prompt will be used.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDisabled

Optional. Whether the rewriter is disabled.

Returns
Type
Description
bool

setDisabled

Optional. Whether the rewriter is disabled.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: