Firebase.AI.ModelContent.InlineDataPart

Data with a specified media type.

Summary

Note: Not all media types may be supported by the AI model.

Inheritance

Inherits from: Firebase.AI.ModelContent.Part

Constructors and Destructors

InlineDataPart(string mimeType, byte[] data)
Creates an InlineDataPart from data and a MIME type.

Properties

Data
ReadOnlyMemory< byte >
The data provided in the inline data part.
MimeType
string
The IANA standard MIME type of the data.

Public functions

ToJson()
Dictionary< string, object > Part.

Properties

Data

ReadOnlyMemory< byte > Firebase::AI::ModelContent::InlineDataPart::Data

The data provided in the inline data part.

MimeType

string Firebase::AI::ModelContent::InlineDataPart::MimeType

The IANA standard MIME type of the data.

Public functions

InlineDataPart

 Firebase::AI::ModelContent::InlineDataPart::InlineDataPart(
  string mimeType,
  byte[] data
)

Creates an InlineDataPart from data and a MIME type.

Important: Supported input types depend on the model on the model being used; see [input files and requirements](https://firebase.google.com/docs/vertex-ai/input-file-requirements) for more details.

Details
Parameters
mimeType
The IANA standard MIME type of the data, for example, "image/jpeg" or "video/mp4"; see input files and requirements for supported values.
data
The data representation of an image, video, audio or document; see input files and requirements for supported media types.

ToJson

Dictionary< string, object > Part. Firebase::AI::ModelContent::InlineDataPart::ToJson()