GenerateContentSettings
The request body contains data with the following structure:
Attributes
- cachedContent
Optional. The name of the content cached to use as context to serve the prediction. Format: cachedContents/{cachedContent}
- generationConfig
Optional. Configuration options for model generation and outputs.
- model
Required. The model to use for generating content.
- safetySettings
Optional. A list of unique SafetySetting instances for blocking unsafe content. This will be enforced on the GenerateContentRequest. Refer to the guide for detailed information on available safety settings. Also refer to the Safety guidance to learn how to incorporate safety considerations in your AI applications.
- systemInstruction
Optional. Developer set system instruction(s). Currently, text only.
- toolConfig
Optional. Tool configuration for any Tool specified in the request. Refer to the Function calling guide for a usage example.
- tools
Optional. A list of Tools the Model may use to generate the next response. A Tool is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the Model. Supported Tools are Function and codeExecution. Refer to the Function calling and the Code execution guides to learn more.
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any