ToolCallStreamPart
Namespace: Vercel.AI.Provider
public sealed class ToolCallStreamPart : LanguageModelStreamPartA completed tool call.
Inheritance: object → LanguageModelStreamPart
Constructors
Section titled “Constructors”ToolCallStreamPart(string, string, string, JsonElement?)
Section titled “ToolCallStreamPart(string, string, string, JsonElement?)”public ToolCallStreamPart(string toolCallId, string toolName, string argumentsJson, JsonElement? providerMetadata = null)Creates a tool-call part.
Parameters
| Name | Type | Description |
|---|---|---|
toolCallId |
string | |
toolName |
string | |
argumentsJson |
string | |
providerMetadata |
JsonElement? |
Properties
Section titled “Properties”ArgumentsJson
Section titled “ArgumentsJson”public string ArgumentsJson { get; }JSON arguments.
Value: string
Dynamic
Section titled “Dynamic”public bool Dynamic { get; init; }True when the tool is not known up front, such as a provider-executed MCP tool. Maps to the call’s dynamic.
Value: bool
ProviderExecuted
Section titled “ProviderExecuted”public bool ProviderExecuted { get; init; }True when the provider executed the tool, so the caller has nothing to run.
Value: bool
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider metadata for this call.
Value: JsonElement?
ToolCallId
Section titled “ToolCallId”public string ToolCallId { get; }Tool call id.
Value: string
ToolName
Section titled “ToolName”public string ToolName { get; }Tool name.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product