Class GenerateContentResponse
Individual response from {@link GenerativeModel.generateContent} and
{@link GenerativeModel.generateContentStream}.
generateContentStream() will return one in each chunk until
the stream is done.
Inheritance
GenerateContentResponse
Assembly: Glitch9.AIDevKit.Provider.Google.dll
Syntax
public sealed class GenerateContentResponse : IProjector<ChatCompletionEvent>
Properties
|
Edit this page
View Source
Candidates
Candidate responses from the model.
Declaration
[JsonProperty("candidates")]
public GeminiCandidate[] Candidates { get; set; }
Property Value
|
Edit this page
View Source
ModelVersion
Output only. The model version used to generate the response.
Declaration
[JsonProperty("modelVersion")]
public string ModelVersion { get; set; }
Property Value
|
Edit this page
View Source
PromptFeedback
Returns the prompt's feedback related to the content filters.
Declaration
[JsonProperty("promptFeedback")]
public PromptFeedback PromptFeedback { get; set; }
Property Value
|
Edit this page
View Source
ResponseId
Output only. The unique identifier of the response.
Declaration
[JsonProperty("responseId")]
public string ResponseId { get; set; }
Property Value
|
Edit this page
View Source
Usage
Output only. Metadata on the generation requests' token usage.
Declaration
[JsonProperty("usageMetadata")]
public Usage Usage { get; set; }
Property Value
Methods
|
Edit this page
View Source
Project()
Declaration
public ChatCompletionEvent Project()
Returns
|
Edit this page
View Source
ToContentParts()
Declaration
public List<GeminiContentPart> ToContentParts()
Returns
|
Edit this page
View Source
ToInlineDataList()
Declaration
public List<string> ToInlineDataList()
Returns
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods