Skip to content

GoogleGeneratedFile

Namespace: Vercel.AI.Google

public sealed class GoogleGeneratedFile : GeneratedFile

A generated file, including thought images.

Inheritance: object → GeneratedContent → GeneratedFile

View source

GoogleGeneratedFile(byte[], string, bool, JsonElement?)

Section titled “GoogleGeneratedFile(byte[], string, bool, JsonElement?)”
public GoogleGeneratedFile(byte[] data, string mediaType, bool thought, JsonElement? providerMetadata)

Creates a file.

Parameters

Name Type Description
data byte[]
mediaType string
thought bool
providerMetadata JsonElement?

View source

public JsonElement? ProviderMetadata { get; }

Provider metadata.

Value: JsonElement?

View source

public bool Thought { get; }

True when the file was part of the model’s thoughts.

Value: bool

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product