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
object
GenerateContentResponse
Assembly: .dll
Syntax
public class GenerateContentResponse
Properties
Candidates
Declaration
public Candidate[] Candidates { get; set; }
Property Value
PromptFeedback
Declaration
public PromptFeedback PromptFeedback { get; set; }
Property Value
Usage
Declaration
public Usage Usage { get; set; }
Property Value
Methods
FirstTextDelta()
Declaration
public string FirstTextDelta()
Returns
ToGeneratedImageAsync(string)
Declaration
public UniTask<GeneratedImage> ToGeneratedImageAsync(string outputPath)
Parameters
Type |
Name |
Description |
string |
outputPath |
|
Returns
ToInlineDataList()
Declaration
public List<string> ToInlineDataList()
Returns
Type |
Description |
List<string> |
|
ToParts()
Declaration
public List<ContentPart> ToParts()
Returns
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A string that represents the current object.
|
Overrides
object.ToString()
Extension Methods