{"name": string,"description": string,"inferenceParameter": {object (InferenceParameter)},"triggerEvent": enum (TriggerEvent),"createTime": string,"updateTime": string,"tools": [string],// Union field context can be only one of the following:"freeFormContext": {object (FreeFormContext)},"summarizationContext": {object (SummarizationContext)}// End of list of possible types for union field context.// Union field foundation_model can be only one of the following:"publishedModel": string// End of list of possible types for union field foundation_model.}
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.
Uses RFC 3339, where generated output will always be Z-normalized and uses 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".
Uses RFC 3339, where generated output will always be Z-normalized and uses 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>.
Union field context. Required. Input context of the generator. context can be only one of the following:
Union field foundation_model. 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. foundation_model can be only one of the following:
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-25 UTC."],[[["This document outlines the structure and fields of a Generator, which is an LLM generator resource."],["The Generator resource includes fields like `name`, `description`, `inferenceParameter`, `triggerEvent`, `createTime`, and `updateTime`, among others."],["The `context` field within a Generator can be one of two types: `freeFormContext` or `summarizationContext`, which specify the input context for the generator."],["The `foundation_model` field can specify a `publishedModel`, which is the Large Language Model to use, either by name for the latest version or with a specific version number."],["The document also details five methods for interacting with Generators: `create`, `delete`, `get`, `list`, and `patch`."]]],[]]