Skip to content

CustomStreamPart

Namespace: Vercel.AI.Provider

public sealed class CustomStreamPart : LanguageModelStreamPart

A provider-specific part, identified by Kind.

Inheritance: object → LanguageModelStreamPart

View source

public CustomStreamPart(string kind, JsonElement? providerMetadata = null)

Creates a custom part.

Parameters

Name Type Description
kind string
providerMetadata JsonElement?

View source

public string Kind { get; }

Provider-scoped kind, such as anthropic.message_start.

Value: string

View source

public JsonElement? ProviderMetadata { get; }

Provider metadata for this part, keyed by provider name.

Value: JsonElement?

View source

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