Firebase. AI. GenerateContentResponse
The model's response to a generate content request.
Summary
Properties | |
---|---|
Candidates | IEnumerable< Candidate > A list of candidate response content, ordered from best to worst. |
FunctionCalls | IEnumerable< 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. |
UsageMetadata | Token usage metadata for processing the generate content request. |
Properties
Candidates
IEnumerable< Candidate > Firebase::AI::GenerateContentResponse::Candidates
A list of candidate response content, ordered from best to worst.
FunctionCalls
IEnumerable< 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.
UsageMetadata
UsageMetadata Firebase::AI::GenerateContentResponse::UsageMetadata
Token usage metadata for processing the generate content request.