UGemini 2.0.1
A C# wrapper for the Google Gemini API.
Loading...
Searching...
No Matches
Uralstech.UGemini.Models.Generation.Chat.GeminiChatResponse Class Reference

Response from the model supporting multiple candidates. More...

Inheritance diagram for Uralstech.UGemini.Models.Generation.Chat.GeminiChatResponse:
Uralstech.UGemini.IAppendableData< GeminiChatResponse >

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.
 

Detailed Description

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:


The documentation for this class was generated from the following file: