Skip to content

BatchContentPart

Namespace: Vercel.AI.Operations

public sealed class BatchContentPart

One content part inside a batch text result.

Inheritance: object

View source

public BatchContentPart(string type)

Creates a part.

Parameters

Name Type Description
type string

View source

public bool? Dynamic { get; set; }

True for a dynamic tool.

Value: bool?

View source

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

Downloaded file bytes.

Value: byte[]

View source

public string? FileUrl { get; set; }

File URL before download.

Value: string

View source

public JsonElement? Input { get; set; }

Parsed tool input.

Value: JsonElement?

View source

public bool? IsError { get; set; }

True when a tool result is an error.

Value: bool?

View source

public string? MediaType { get; set; }

File media type.

Value: string

View source

public JsonElement? Output { get; set; }

Tool output.

Value: JsonElement?

View source

public bool? ProviderExecuted { get; set; }

True when the provider executed the tool.

Value: bool?

View source

public JsonElement? ProviderMetadata { get; set; }

Provider metadata.

Value: JsonElement?

View source

public string? Text { get; set; }

Text.

Value: string

View source

public string? ToolCallId { get; set; }

Tool call id.

Value: string

View source

public string? ToolName { get; set; }

Tool name.

Value: string

View source

public string Type { get; }

Part type.

Value: string

View source

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