GeminiMetadata Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the metadata associated with a Gemini response.
public sealed class GeminiMetadata : System.Collections.ObjectModel.ReadOnlyDictionary<string,object>
type GeminiMetadata = class
inherit ReadOnlyDictionary<string, obj>
Public NotInheritable Class GeminiMetadata
Inherits ReadOnlyDictionary(Of String, Object)
- Inheritance
-
GeminiMetadata
Properties
CandidatesTokenCount |
The total count of tokens of the all candidate responses. |
CurrentCandidateTokenCount |
The count of token in the current candidate. |
FinishReason |
Reason why the processing was finished. |
Index |
Index of the response. |
PromptFeedbackBlockReason |
The reason why prompt was blocked. |
PromptFeedbackSafetyRatings |
List of safety ratings for the prompt feedback. |
PromptTokenCount |
The count of tokens in the prompt. |
ResponseSafetyRatings |
List of safety ratings for the response. |
TotalTokenCount |
The total count of tokens (prompt + total candidates token count). |
Methods
FromDictionary(IReadOnlyDictionary<String,Object>) |
Converts a dictionary to a GeminiMetadata object. |