public class GenerateContentResponse
GenerateContentResponse | Initializes a new instance of the GenerateContentResponse class |
Candidates | Candidate responses from the model. |
ModelVersion | Output only. The model version used to generate the response. |
PromptFeedback | Returns the prompt's feedback related to the content filters. |
UsageMetadata | Output only. Metadata on the generation requests' token usage. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
ToString |
Converts the GenerateContentResponse instance to its string representation.
(Overrides ObjectToString) |
(GenerateContentResponse to String) | Converts the GenerateContentResponse instance to its string representation explicitly. |
ExtractCodeBlocks |
Extracts all code blocks from the provided GenerateContentResponse.
(Defined by GenerateContentResponseExtensions) |
ExtractJsonBlocks |
Extracts all JSON blocks from the provided GenerateContentResponse.
(Defined by GenerateContentResponseExtensions) |
GetFunction |
Returns the first candidate’s first function call.
(Defined by GenerateContentResponseExtensions) |
Text |
Returns the text of the first candidate’s first content part.
(Defined by GenerateContentResponseExtensions) |
ToChatCompletion |
Transforms a GenerateContentResponse into a ChatCompletion.
(Defined by AbstractionMapper) |
ToObjectT |
Extracts all JSON blocks from the provided GenerateContentResponse.
(Defined by GenerateContentResponseExtensions) |
ToObjectsT |
Converts JSON blocks contained within the GenerateContentResponse into objects of the specified type.
(Defined by GenerateContentResponseExtensions) |
ToStreamingChatCompletionUpdate |
Converts a GenerateContentResponse into a StreamingChatCompletionUpdate.
(Defined by AbstractionMapper) |