Skip to content

AssistantToolCallPart

Namespace: Vercel.AI.Provider

public sealed class AssistantToolCallPart : AssistantContentPart

A tool call in an assistant message.

Inheritance: object → AssistantContentPart

View source

AssistantToolCallPart(GeneratedToolCall, IReadOnlyDictionary<string, JsonElement>?)

Section titled “AssistantToolCallPart(GeneratedToolCall, IReadOnlyDictionary<string, JsonElement>?)”
public AssistantToolCallPart(GeneratedToolCall toolCall, IReadOnlyDictionary<string, JsonElement>? providerOptions = null)

Creates a tool-call part. Without <code class=“paramref”>providerOptions</code>, the call’s provider metadata is used.

Parameters

Name Type Description
toolCall GeneratedToolCall
providerOptions IReadOnlyDictionary<string, JsonElement>

View source

public GeneratedToolCall ToolCall { get; }

The call.

Value: GeneratedToolCall

View source

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