Reference documentation and code samples for the Google Cloud Ces V1 Client class ModelSettings.
Model settings contains various configurations for the LLM model.
Generated from protobuf message google.cloud.ces.v1.ModelSettings
Namespace
Google \ Cloud \ Ces \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ model |
string
Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent. |
↳ temperature |
float
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. |
getModel
Optional. The LLM model that the agent should use.
If not set, the agent will inherit the model from its parent agent.
| Returns | |
|---|---|
| Type | Description |
string |
|
setModel
Optional. The LLM model that the agent should use.
If not set, the agent will inherit the model from its parent agent.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
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.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasTemperature
clearTemperature
setTemperature
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.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|