{"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 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".
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>.
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-08-21 UTC."],[[["\u003cp\u003eThis document outlines the structure and fields of a Generator, which is an LLM generator resource.\u003c/p\u003e\n"],["\u003cp\u003eThe Generator resource includes fields like \u003ccode\u003ename\u003c/code\u003e, \u003ccode\u003edescription\u003c/code\u003e, \u003ccode\u003einferenceParameter\u003c/code\u003e, \u003ccode\u003etriggerEvent\u003c/code\u003e, \u003ccode\u003ecreateTime\u003c/code\u003e, and \u003ccode\u003eupdateTime\u003c/code\u003e, among others.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003econtext\u003c/code\u003e field within a Generator can be one of two types: \u003ccode\u003efreeFormContext\u003c/code\u003e or \u003ccode\u003esummarizationContext\u003c/code\u003e, which specify the input context for the generator.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003efoundation_model\u003c/code\u003e field can specify a \u003ccode\u003epublishedModel\u003c/code\u003e, which is the Large Language Model to use, either by name for the latest version or with a specific version number.\u003c/p\u003e\n"],["\u003cp\u003eThe document also details five methods for interacting with Generators: \u003ccode\u003ecreate\u003c/code\u003e, \u003ccode\u003edelete\u003c/code\u003e, \u003ccode\u003eget\u003c/code\u003e, \u003ccode\u003elist\u003c/code\u003e, and \u003ccode\u003epatch\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]