次の方法で共有


GeminiMetadata Class

Definition

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.

Applies to