ToolInputStartStreamPart
Namespace: Vercel.AI.Provider
public sealed class ToolInputStartStreamPart : LanguageModelStreamPartMarks the start of streamed tool input.
Inheritance: object → LanguageModelStreamPart
Constructors
Section titled “Constructors”ToolInputStartStreamPart(string, string, JsonElement?, bool?, bool?, string?, ToolInputEncoding?)
Section titled “ToolInputStartStreamPart(string, string, JsonElement?, bool?, bool?, string?, ToolInputEncoding?)”public ToolInputStartStreamPart(string id, string toolName, JsonElement? providerMetadata = null, bool? providerExecuted = null, bool? dynamic = null, string? title = null, ToolInputEncoding? inputEncoding = null)Creates a tool-input-start part.
Parameters
| Name | Type | Description |
|---|---|---|
id |
string | |
toolName |
string | |
providerMetadata |
JsonElement? | |
providerExecuted |
bool? | |
dynamic |
bool? | |
title |
string | |
inputEncoding |
ToolInputEncoding? |
Properties
Section titled “Properties”Dynamic
Section titled “Dynamic”public bool? Dynamic { get; }True for a tool the caller did not declare.
Value: bool?
public string Id { get; }Tool call id.
Value: string
InputEncoding
Section titled “InputEncoding”public ToolInputEncoding? InputEncoding { get; }Encoding of the input deltas. Defaults to JSON when <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>. Text deltas concatenate to a raw string. The final tool call input must still be JSON-encoded, whatever the delta encoding.
Value: ToolInputEncoding?
ProviderExecuted
Section titled “ProviderExecuted”public bool? ProviderExecuted { get; }True when the provider executes the tool.
Value: bool?
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider metadata for this tool input.
Value: JsonElement?
public string? Title { get; }Optional tool title.
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