contents property

List<Content> contents
final

Required. The content of the current conversation with the Model. For single-turn queries, this is a single question to answer. For multi-turn queries, this is a repeated field that contains conversation history and the last Content in the list containing the question.

Note: GenerateAnswer only supports queries in English.

Implementation

final List<Content> contents;