public sealed class GenerateContentResponse : IMessage<GenerateContentResponse>, IEquatable<GenerateContentResponse>, IDeepCloneable<GenerateContentResponse>, IBufferMessage, IMessageReference documentation and code samples for the Vertex AI v1beta1 API class GenerateContentResponse.
Response message for [PredictionService.GenerateContent].
Implements
IMessageGenerateContentResponse, IEquatableGenerateContentResponse, IDeepCloneableGenerateContentResponse, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Constructors
GenerateContentResponse()
public GenerateContentResponse()GenerateContentResponse(GenerateContentResponse)
public GenerateContentResponse(GenerateContentResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
GenerateContentResponse |
Properties
Candidates
public RepeatedField<Candidate> Candidates { get; }Output only. Generated candidates.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldCandidate |
|
CreateTime
public Timestamp CreateTime { get; set; }Output only. Timestamp when the request is made to the server.
| Property Value | |
|---|---|
| Type | Description |
Timestamp |
|
ModelVersion
public string ModelVersion { get; set; }Output only. The model version used to generate the response.
| Property Value | |
|---|---|
| Type | Description |
string |
|
PromptFeedback
public GenerateContentResponse.Types.PromptFeedback PromptFeedback { get; set; }Output only. Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations.
| Property Value | |
|---|---|
| Type | Description |
GenerateContentResponseTypesPromptFeedback |
|
ResponseId
public string ResponseId { get; set; }Output only. response_id is used to identify each response. It is the encoding of the event_id.
| Property Value | |
|---|---|
| Type | Description |
string |
|
UsageMetadata
public GenerateContentResponse.Types.UsageMetadata UsageMetadata { get; set; }Usage metadata about the response(s).
| Property Value | |
|---|---|
| Type | Description |
GenerateContentResponseTypesUsageMetadata |
|