Firebase. AI. GenerateContentResponse
The model's response to a generate content request.
Summary
Properties | |
---|---|
Candidates | IReadOnlyList< Candidate > A list of candidate response content, ordered from best to worst. |
FunctionCalls | IReadOnlyList< ModelContent.FunctionCallPart > Returns function calls found in any Part s of the first candidate of the response, if any. |
PromptFeedback | A value containing the safety ratings for the response, or, if the request was blocked, a reason for blocking the request. |
Text | string The response's content as text, if it exists. |
ThoughtSummary | string A summary of the model's thinking process, if available. |
UsageMetadata | Token usage metadata for processing the generate content request. |
Properties
Candidates
IReadOnlyList< Candidate > Firebase::AI::GenerateContentResponse::Candidates
A list of candidate response content, ordered from best to worst.
FunctionCalls
IReadOnlyList< ModelContent.FunctionCallPart > Firebase::AI::GenerateContentResponse::FunctionCalls
Returns function calls found in any Part
s of the first candidate of the response, if any.
PromptFeedback
PromptFeedback Firebase::AI::GenerateContentResponse::PromptFeedback
A value containing the safety ratings for the response, or, if the request was blocked, a reason for blocking the request.
Text
string Firebase::AI::GenerateContentResponse::Text
The response's content as text, if it exists.
ThoughtSummary
string Firebase::AI::GenerateContentResponse::ThoughtSummary
A summary of the model's thinking process, if available.
Note that Thought Summaries are only available when IncludeThoughts
is enabled in the ThinkingConfig
. For more information, see the Thinking documentation.
UsageMetadata
UsageMetadata Firebase::AI::GenerateContentResponse::UsageMetadata
Token usage metadata for processing the generate content request.