AssistantToolCallPart
Namespace: Vercel.AI.Provider
public sealed class AssistantToolCallPart : AssistantContentPartA tool call in an assistant message.
Inheritance: object → AssistantContentPart
Constructors
Section titled “Constructors”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> |
Properties
Section titled “Properties”ToolCall
Section titled “ToolCall”public GeneratedToolCall ToolCall { get; }The call.
Value: GeneratedToolCall
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product