Candidate

io.cequence.openaiscala.gemini.domain.response.Candidate
case class Candidate(content: Content, finishReason: Option[FinishReason], safetyRatings: Seq[SafetyRating], citationMetadata: Option[CitationMetadata], tokenCount: Option[Int], groundingAttributions: Seq[GroundingAttribution], groundingMetadata: Option[GroundingMetadata], avgLogprobs: Option[Double], logprobsResult: Option[LogprobsResult], index: Option[Int])

Attributes

avgLogprobs

Output only. Average log probability score of the candidate.

citationMetadata

Output only. Citation information for model-generated candidate. This field may be populated with recitation information for any text included in the content. These are passages that are "recited" from copyrighted material in the foundational LLM's training data.

content

Output only. Generated content returned from the model.

finishReason

Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.

groundingAttributions

Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for GenerateAnswer calls.

groundingMetadata

Output only. Grounding metadata for the candidate. This field is populated for GenerateContent calls.

index

Output only. Index of the candidate in the list of response candidates.

logprobsResult

Output only. Log-likelihood scores for the response tokens and top tokens.

safetyRatings

List of ratings for the safety of a response candidate. There is at most one rating per category.

tokenCount

Output only. Token count for this candidate.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product