OptionalcandidatesAggregates and returns every FunctionCall from the first candidate of GenerateContentResponse.
Aggregates and returns all InlineDataParts from the GenerateContentResponse's first candidate.
An array of InlineDataParts containing data from the response, if available.
OptionalpromptReturns the text string from the response, if available. Throws if the prompt or candidate was blocked.
Aggregates and returns every TextPart with their thought property set
to true from the first candidate of GenerateContentResponse.
Thought summaries provide a brief overview of the model's internal thinking process, offering insight into how it arrived at the final answer. This can be useful for debugging, understanding the model's reasoning, and verifying its accuracy.
Thoughts will only be included if ThinkingConfig.includeThoughts is
set to true.
Optionalusage
Response object wrapped with helper methods.