Skip to content

UploadFileRequest

Namespace: Vercel.AI.Operations

public sealed class UploadFileRequest

Options for CancellationToken).

Inheritance: object

View source

public ApiOrProvider<IFileStore, IFileStoreProvider>? Api { get; set; }

Files API or a provider that exposes one.

Value: ApiOrProvider&lt;IFileStore, IFileStoreProvider&gt;

View source

public CancellationToken CancellationToken { get; set; }

Cancellation token.

Value: CancellationToken

View source

public object? Data { get; set; }

Tagged data, bytes, or a string shorthand.

Value: object

View source

public string? Filename { get; set; }

Optional filename.

Value: string

View source

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

Request headers.

Value: IReadOnlyDictionary<string, string>

View source

public string? MediaType { get; set; }

Optional media type. Detected when omitted.

Value: string

View source

public JsonElement? ProviderOptions { get; set; }

Provider options. Null when omitted.

Value: JsonElement?

View source

public bool ProviderOptionsSpecified { get; set; }

True when the caller set ProviderOptions, including an explicit null.

Value: bool

View source

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