- [Resource: Generator](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.generators#Generator)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.generators#Generator.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.generators#METHODS_SUMMARY)

## Resource: Generator

LLM generator.

| JSON representation |
|---|
| ``` { "name": string, "description": string, "inferenceParameter": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.generators#Generator.InferenceParameter`) }, "triggerEvent": enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/TriggerEvent`), "createTime": string, "updateTime": string, "tools": [ string ], "suggestionDedupingConfig": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.generators#Generator.SuggestionDedupingConfig`) }, "toolsetTools": [ { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/ToolsetTool`) } ], "cesToolSpecs": [ { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/CesToolSpec`) } ], "cesAppSpecs": [ { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.generators#Generator.CesAppSpec`) } ], // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "freeFormContext": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.generators#Generator.FreeFormContext`) }, "agentCoachingContext": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.generators#Generator.AgentCoachingContext`) }, "summarizationContext": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.generators#Generator.SummarizationContext`) } // End of mutually exclusive fields. // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "publishedModel": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Identifier. The resource name of the generator. Format: `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>` |
| `description` | `string` Optional. Human readable description of the generator. |
| `inferenceParameter` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.generators#Generator.InferenceParameter`)`` Optional. Inference parameters for this generator. |
| `triggerEvent` | ``enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/TriggerEvent`)`` Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Creation time of this generator. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Update time of this generator. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `tools[]` | `string` Optional. Resource names of the tools that the generator can choose from. Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`. |
| `suggestionDedupingConfig` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.generators#Generator.SuggestionDedupingConfig`)`` Optional. Configuration for suggestion deduping. This is only applicable to AI Coach feature. |
| `toolsetTools[]` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/ToolsetTool`)`` Optional. List of CES toolset specs that the generator can choose from. |
| `cesToolSpecs[]` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/CesToolSpec`)`` Optional. List of CES tool specs that the generator can choose from. |
| `cesAppSpecs[] (deprecated)` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.generators#Generator.CesAppSpec`)`` > [!WARNING] > This item is deprecated! Optional. Deprecated: Use `cesToolSpecs` instead. List of CES app specs that the generator can choose from. |
| Required. Input context of the generator. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `freeFormContext` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.generators#Generator.FreeFormContext`)`` Input of free from generator to LLM. |
| `agentCoachingContext` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.generators#Generator.AgentCoachingContext`)`` Input of Agent Coaching feature. |
| `summarizationContext` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.generators#Generator.SummarizationContext`)`` Input of Summarization feature. |
| End of mutually exclusive fields. ||
| The foundation model to use for generating suggestions. If a foundation model isn't specified here, a model specifically tuned for the feature type (and version when applicable) will be used. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `publishedModel` | `string` Optional. The published Large Language Model name. \* To use the latest model version, specify the model name without version number. Example: `text-bison` \* To use a stable model version, specify the version number as well. Example: `text-bison@002`. |
| End of mutually exclusive fields. ||

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.generators/create` | Creates a generator. |
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.generators/delete` | Deletes a generator. |
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.generators/get` | Retrieves a generator. |
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.generators/list` | Lists generators. |
| ### `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.locations.generators/patch` | Updates a generator. |