GoogleFileUserPart
Namespace: Vercel.AI.Google
public sealed class GoogleFileUserPart : GoogleUserPartA user file. Kind is url, data, text, or reference.
Inheritance: object → GoogleUserPart
Constructors
Section titled “Constructors”GoogleFileUserPart(string, string)
Section titled “GoogleFileUserPart(string, string)”public GoogleFileUserPart(string mediaType, string kind)Creates a file part.
Parameters
| Name | Type | Description |
|---|---|---|
mediaType |
string | |
kind |
string |
Properties
Section titled “Properties”public byte[]? Data { get; set; }Inline bytes.
Value: byte[]
public string Kind { get; }url, data, text, or reference.
Value: string
MediaType
Section titled “MediaType”public string MediaType { get; }Declared media type. A top-level type such as image is completed from the bytes.
Value: string
OriginalUrl
Section titled “OriginalUrl”public string? OriginalUrl { get; set; }Original URI preserved when a gs: URL was normalized.
Value: string
Reference
Section titled “Reference”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>
public string? Text { get; set; }Inline text source.
Value: string
public string? Url { get; set; }Remote URL, including gs:// and data: URLs.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product