google.generativeai.types.Completion

The result returned by generativeai.generate_text.

Use GenerateTextResponse.candidates to access all the completions generated by the model.

candidates A list of candidate text completions generated by the model.
result The output of the first candidate,
filters Indicates the reasons why content may have been blocked. See types.BlockedReason.
safety_feedback Indicates which safety settings blocked content in this result.

Methods

to_dict

View source

__eq__