FirebaseVertexAI Framework Reference

Protocols

The following protocols are available globally.

  • A protocol describing any data that could be serialized to model-interpretable input data,where the serialization process cannot fail with an error.

    Declaration

    Swift

    @available(iOS15.0,macOS12.0,tvOS15.0,watchOS8.0,*)publicprotocolPartsRepresentable
  • A discrete piece of data in a media format interpretable by an AI model.

    Within a single value ofPart, different data types may not mix.

    Declaration

    Swift

    @available(iOS15.0,macOS12.0,tvOS15.0,watchOS8.0,*)publicprotocolPart:PartsRepresentable,Decodable,Encodable,Equatable,Sendable

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-21 UTC.