Skip to content

XaiFileMetadata

Namespace: Vercel.AI.Xai

public sealed class XaiFileMetadata

Metadata stored under providerMetadata.xai. A field is null when the response did not return it.

Inheritance: object

View source

XaiFileMetadata(string?, string?, long?, long?, string?, long?)

Section titled “XaiFileMetadata(string?, string?, long?, long?, string?, long?)”
public XaiFileMetadata(string? fileName, string? purpose, long? bytes, long? createdAt, string? status, long? expiresAt)

Creates metadata from the fields the response returned.

Parameters

Name Type Description
fileName string
purpose string
bytes long?
createdAt long?
status string
expiresAt long?

View source

public long? Bytes { get; }

bytes from the response.

Value: long?

View source

public long? CreatedAt { get; }

created_at from the response, in unix seconds.

Value: long?

View source

public long? ExpiresAt { get; }

expires_at from the response, in unix seconds.

Value: long?

View source

public string? FileName { get; }

filename from the response.

Value: string

View source

public string? Purpose { get; }

purpose from the response.

Value: string

View source

public string? Status { get; }

status from the response.

Value: string

View source

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