FirebaseVertexAI Framework Reference

Candidate

@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public struct Candidate : Sendable
extension Candidate: Decodable

A struct representing a possible reply to a content generation prompt. Each content generation prompt may produce multiple candidate responses.

  • Initializes a response from a decoder. Used for decoding server responses; not for public use.

    Declaration

    Swift

    public init(from decoder: Decoder) throws