XaiFileResult
Namespace: Vercel.AI.Xai
public sealed class XaiFileResultResult of an xAI file upload or metadata read.
Inheritance: object
Constructors
Section titled “Constructors”XaiFileResult(IReadOnlyDictionary<string, string>, XaiFileMetadata, string?, string?, long?, DateTimeOffset?, DateTimeOffset?)
Section titled “XaiFileResult(IReadOnlyDictionary<string, string>, XaiFileMetadata, string?, string?, long?, DateTimeOffset?, DateTimeOffset?)”public XaiFileResult(IReadOnlyDictionary<string, string> providerReference, XaiFileMetadata metadata, string? fileName, string? mediaType, long? byteSize, DateTimeOffset? createdAt, DateTimeOffset? expiresAt)Creates a file result.
Parameters
| Name | Type | Description |
|---|---|---|
providerReference |
IReadOnlyDictionary<string, string> | |
metadata |
XaiFileMetadata | |
fileName |
string | |
mediaType |
string | |
byteSize |
long? | |
createdAt |
DateTimeOffset? | |
expiresAt |
DateTimeOffset? |
Properties
Section titled “Properties”ByteSize
Section titled “ByteSize”public long? ByteSize { get; }Size in bytes, when the response includes it.
Value: long?
CreatedAt
Section titled “CreatedAt”public DateTimeOffset? CreatedAt { get; }Creation time.
Value: DateTimeOffset?
ExpiresAt
Section titled “ExpiresAt”public DateTimeOffset? ExpiresAt { get; }Expiration time.
Value: DateTimeOffset?
FileName
Section titled “FileName”public string? FileName { get; }File name from the response, or the name that was uploaded.
Value: string
MediaType
Section titled “MediaType”public string? MediaType { get; }Media type supplied by the caller.
Value: string
Metadata
Section titled “Metadata”public XaiFileMetadata Metadata { get; }Response fields. Fields the response did not return are null.
Value: XaiFileMetadata
ProviderReference
Section titled “ProviderReference”public IReadOnlyDictionary<string, string> ProviderReference { get; }Reference containing the xai file id.
Value: IReadOnlyDictionary<string, string>
Warnings
Section titled “Warnings”public IReadOnlyList<ModelWarning> Warnings { get; }Always empty.
Value: IReadOnlyList<ModelWarning>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product