Skip to content

GoogleFileAssistantPart

Namespace: Vercel.AI.Google

public sealed class GoogleFileAssistantPart : GoogleAssistantPart

An assistant file or reasoning file.

Inheritance: object → GoogleAssistantPart

View source

GoogleFileAssistantPart(string, string, bool)

Section titled “GoogleFileAssistantPart(string, string, bool)”
public GoogleFileAssistantPart(string mediaType, string kind, bool reasoning)

Creates a file part.

Parameters

Name Type Description
mediaType string
kind string
reasoning bool

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; }

Media type.

Value: string

View source

public bool Reasoning { get; }

True for a reasoning file.

Value: bool

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.

Value: string

View source

public string? Url { get; set; }

Remote URL.

Value: string

View source

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