google.generativeai.protos.GenerateMessageResponse
The response from the model.
This includes candidate messages and
conversation history in the form of chronologically-ordered
messages.
Attributes |
`candidates`
|
`MutableSequence[google.ai.generativelanguage.Message]`
Candidate response messages from the model.
|
`messages`
|
`MutableSequence[google.ai.generativelanguage.Message]`
The conversation history used by the model.
|
`filters`
|
`MutableSequence[google.ai.generativelanguage.ContentFilter]`
A set of content filtering metadata for the prompt and
response text.
This indicates which ``SafetyCategory``\ (s) blocked a
candidate from this response, the lowest ``HarmProbability``
that triggered a block, and the HarmThreshold setting for
that category.
|