BatchContentPart
Namespace: Vercel.AI.Operations
public sealed class BatchContentPartOne content part inside a batch text result.
Inheritance: object
Constructors
Section titled “Constructors”BatchContentPart(string)
Section titled “BatchContentPart(string)”public BatchContentPart(string type)Creates a part.
Parameters
| Name | Type | Description |
|---|---|---|
type |
string |
Properties
Section titled “Properties”Dynamic
Section titled “Dynamic”public bool? Dynamic { get; set; }True for a dynamic tool.
Value: bool?
FileBytes
Section titled “FileBytes”public byte[]? FileBytes { get; set; }Downloaded file bytes.
Value: byte[]
FileUrl
Section titled “FileUrl”public string? FileUrl { get; set; }File URL before download.
Value: string
public JsonElement? Input { get; set; }Parsed tool input.
Value: JsonElement?
IsError
Section titled “IsError”public bool? IsError { get; set; }True when a tool result is an error.
Value: bool?
MediaType
Section titled “MediaType”public string? MediaType { get; set; }File media type.
Value: string
Output
Section titled “Output”public JsonElement? Output { get; set; }Tool output.
Value: JsonElement?
ProviderExecuted
Section titled “ProviderExecuted”public bool? ProviderExecuted { get; set; }True when the provider executed the tool.
Value: bool?
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; set; }Provider metadata.
Value: JsonElement?
public string? Text { get; set; }Text.
Value: string
ToolCallId
Section titled “ToolCallId”public string? ToolCallId { get; set; }Tool call id.
Value: string
ToolName
Section titled “ToolName”public string? ToolName { get; set; }Tool name.
Value: string
public string Type { get; }Part type.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product