Skip to content

GenerateContentProperties

A list of the generate content property names and values in key/value pairs format.

GenerateContentProperties Properties

Property Type Required
Contents object[] Yes
GenerationConfig object No
SafetySettings object[] No
SystemInstruction object No
Tool array No

Contents

The content of the current conversation with the model.

  • type: object[]

GenerationConfig

Generation configuration settings.

  • type: object

SafetySettings

Per request settings for blocking unsafe content.

For more information, see this

  • type: object[]

SystemInstruction

Instructions for the model to steer it toward better performance. For example, "Answer as concisely as possible" or "Don't use technical terms in your response".

  • type: object

Tool

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.

  • type: array