Class TextGenerationResponse (1.34.0)

TextGenerationResponse(text: str, _prediction_response: typing.Any, is_blocked: bool = False, safety_attributes: typing.Dict[str, float] = <factory>)

TextGenerationResponse represents a response of a language model. .. attribute:: text

The generated text

Scores for safety attributes. Learn more about the safety attributes here: http://cloud.go888ogle.com.fqhub.com/vertex-ai/docs/generative-ai/learn/responsible-ai#safety_attribute_descriptions

Properties

raw_prediction_response

Raw prediction response.