Skip to content

AssistantCustomPart

Namespace: Vercel.AI.Provider

public sealed class AssistantCustomPart : AssistantContentPart

A provider-specific part, identified by Kind.

Inheritance: object → AssistantContentPart

View source

AssistantCustomPart(string, IReadOnlyDictionary<string, JsonElement>?)

Section titled “AssistantCustomPart(string, IReadOnlyDictionary<string, JsonElement>?)”
public AssistantCustomPart(string kind, IReadOnlyDictionary<string, JsonElement>? providerOptions = null)

Creates a custom part.

Parameters

Name Type Description
kind string
providerOptions IReadOnlyDictionary<string, JsonElement>

View source

public string Kind { get; }

Provider-scoped kind.

Value: string

View source

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