Content-Length: 4236722 | pFad | http://firebase.google.com/docs/reference/swift/firebasevertexai/api/reference/Structs/ModelContent

FirebaseVertexAI Framework Reference

FirebaseVertexAI Framework Reference

ModelContent

@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public struct ModelContent : Equatable, Sendable
extension ModelContent: Codable

A type describing data in media formats interpretable by an AI model. Each generative AI request or response contains an Array of ModelContents, and each ModelContent value may comprise multiple heterogeneous Parts.

  • The role of the entity creating the ModelContent. For user-generated client requests, for example, the role is user.

    Declaration

    Swift

    public let role: String?
  • The data parts comprising this ModelContent value.

    Declaration

    Swift

    public var parts: [any Part] { get }
  • Creates a new value from a list of Parts.

    Declaration

    Swift

    public init(role: String? = "user", parts: [any Part])
  • Creates a new value from any data interpretable as a Part. See PartsRepresentable for types that can be interpreted as Parts.

    Declaration

    Swift

    public init(role: String? = "user", parts: any PartsRepresentable...)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://firebase.google.com/docs/reference/swift/firebasevertexai/api/reference/Structs/ModelContent

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy