Skip to content

GoogleFileUserPart

Namespace: Vercel.AI.Google

public sealed class GoogleFileUserPart : GoogleUserPart

A user file. Kind is url, data, text, or reference.

Inheritance: object → GoogleUserPart

View source

public GoogleFileUserPart(string mediaType, string kind)

Creates a file part.

Parameters

Name Type Description
mediaType string
kind string

View source

public byte[]? Data { get; set; }

Inline bytes.

Value: byte[]

View source

public string Kind { get; }

url, data, text, or reference.

Value: string

View source

public string MediaType { get; }

Declared media type. A top-level type such as image is completed from the bytes.

Value: string

View source

public string? OriginalUrl { get; set; }

Original URI preserved when a gs: URL was normalized.

Value: string

View source

public IReadOnlyDictionary<string, string>? Reference { get; set; }

Map from provider name to an uploaded file id. The google entry is the file URI.

Value: IReadOnlyDictionary<string, string>

View source

public string? Text { get; set; }

Inline text source.

Value: string

View source

public string? Url { get; set; }

Remote URL, including gs:// and data: URLs.

Value: string

View source

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