# Firebase.AI.Candidate

A struct representing a possible reply to a content generation prompt.

## Summary

Each content generation prompt may produce multiple candidate responses.

| ### Properties ||
|---|---|
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/candidate#struct_firebase_1_1_a_i_1_1_candidate_1a46a5266aa61b973482cfef8bfd233069` | `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/citation-metadata#struct_firebase_1_1_a_i_1_1_citation_metadata` Cited works in the model's response content, if it exists. |
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/candidate#struct_firebase_1_1_a_i_1_1_candidate_1ab6fc4a3c799f977cd6259b27856e4e22` | `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/model-content#struct_firebase_1_1_a_i_1_1_model_content` The response's content. |
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/candidate#struct_firebase_1_1_a_i_1_1_candidate_1adcff9e76ecd56e9d2190cbe149683c6a` | `string` A human-readable description of why the model stopped generating content, if it exists. |
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/candidate#struct_firebase_1_1_a_i_1_1_candidate_1ab0438648e017e9ae0a7e02ec9c3b52bd` | `https://firebase.google.com/docs/reference/unity/namespace/firebase/a-i#namespace_firebase_1_1_a_i_1ab636544c199b4ff23cce90300815c455` The reason the model stopped generating content, if it exists; for example, if the model generated a predefined stop sequence. |
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/candidate#struct_firebase_1_1_a_i_1_1_candidate_1adb692b2d9e18559ac3af2da27cc3b078` | `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/grounding-metadata#struct_firebase_1_1_a_i_1_1_grounding_metadata` Grounding metadata for the response, if any. |
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/candidate#struct_firebase_1_1_a_i_1_1_candidate_1a967e1a2467ce46436abe9279891ee1af` | `IReadOnlyList< https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/safety-rating#struct_firebase_1_1_a_i_1_1_safety_rating >` The safety rating of the response content. |
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/candidate#struct_firebase_1_1_a_i_1_1_candidate_1a6bd9df2f24278ed5627cb4453eebb533` | `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/url-context-metadata#struct_firebase_1_1_a_i_1_1_url_context_metadata` Metadata related to the `URLContext` tool. |

## Properties

### CitationMetadata

```c#
CitationMetadata Firebase::AI::Candidate::CitationMetadata
```
Cited works in the model's response content, if it exists.

### Content

```c#
ModelContent Firebase::AI::Candidate::Content
```
The response's content.

### FinishMessage

```c#
string Firebase::AI::Candidate::FinishMessage
```
A human-readable description of why the model stopped generating content, if it exists.

### FinishReason

```c#
FinishReason Firebase::AI::Candidate::FinishReason
```
The reason the model stopped generating content, if it exists; for example, if the model generated a predefined stop sequence.

### GroundingMetadata

```c#
GroundingMetadata Firebase::AI::Candidate::GroundingMetadata
```
Grounding metadata for the response, if any.

### SafetyRatings

```c#
IReadOnlyList< SafetyRating > Firebase::AI::Candidate::SafetyRatings
```
The safety rating of the response content.

### UrlContextMetadata

```c#
UrlContextMetadata Firebase::AI::Candidate::UrlContextMetadata
```
Metadata related to the `URLContext` tool.