UGemini 2.0.1
A C# wrapper for the Google Gemini API.
|
Response from the model supporting multiple candidates. More...
Public Member Functions | |
void | Append (GeminiChatResponse data) |
Public Member Functions inherited from Uralstech.UGemini.IAppendableData< GeminiChatResponse > | |
void | Append (T data) |
Appends the data to the current IAppendableData<T>. | |
Public Attributes | |
GeminiCandidate[] | Candidates |
Candidate responses from the model. | |
GeminiPromptFeedback | PromptFeedback |
Returns the prompt's feedback related to the content filters. | |
GeminiUsageMetadata | UsageMetadata |
Metadata on the generation requests' token usage. | |
Properties | |
GeminiContentPart[] | Parts [get] |
The parts of the GeminiChatResponse message. | |
Response from the model supporting multiple candidates.
Note on safety ratings and content filtering. They are reported for both prompt in
PromptFeedback and for each candidate in GeminiCandidate.FinishReason
and in GeminiCandidate.SafetyRatings. The API contract is that: