GitHub

GenerateTextResponse

API reference for GenerateTextResponse.

A generated response: its parts, with accessors.

Attributes

AttributeTypeDescription
contentSequence[R.Part[_NN_co, _RP_co]]
textstr
reasoninglist[R.ReasoningPart]
reasoning_textstr | None
tool_callsSequence[R.ToolCallPart[_NN_co, object]]
tool_resultsSequence[_RP_co]
finish_reasonR.FinishReason
usageR.Usage

Functions

__init__

__init__(content) -> None
ParameterTypeDescription
contentSequence[R.Part[_NN_co, _RP_co]]