Skip to content

GoogleToolContentPart

Namespace: Vercel.AI.Google

public sealed class GoogleToolContentPart

One multimodal tool-result part.

Inheritance: object

View source

public GoogleToolContentPart(string type)

Creates a content part.

Parameters

Name Type Description
type string

View source

public byte[]? Data { get; set; }

Inline bytes.

Value: byte[]

View source

public string? DataKind { get; set; }

data or url.

Value: string

View source

public string? MediaType { get; set; }

Media type of a file.

Value: string

View source

public string? Text { get; set; }

Text, when Type is text.

Value: string

View source

public string Type { get; }

text or file.

Value: string

View source

public string? Url { get; set; }

URL or data URL.

Value: string

View source

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