CustomStreamPart
Namespace: Vercel.AI.Provider
public sealed class CustomStreamPart : LanguageModelStreamPartA provider-specific part, identified by Kind.
Inheritance: object → LanguageModelStreamPart
Constructors
Section titled “Constructors”CustomStreamPart(string, JsonElement?)
Section titled “CustomStreamPart(string, JsonElement?)”public CustomStreamPart(string kind, JsonElement? providerMetadata = null)Creates a custom part.
Parameters
| Name | Type | Description |
|---|---|---|
kind |
string | |
providerMetadata |
JsonElement? |
Properties
Section titled “Properties”public string Kind { get; }Provider-scoped kind, such as anthropic.message_start.
Value: string
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider metadata for this part, keyed by provider name.
Value: JsonElement?
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product