ToolInputStartPart
Namespace: Vercel.AI
public sealed class ToolInputStartPart : TextStreamPartThe model started streaming tool input.
Inheritance: object → TextStreamPart
Constructors
Section titled “Constructors”ToolInputStartPart(string, string, JsonElement?, bool?, bool, ToolInputEncoding?, string?)
Section titled “ToolInputStartPart(string, string, JsonElement?, bool?, bool, ToolInputEncoding?, string?)”public ToolInputStartPart(string id, string toolName, JsonElement? providerMetadata, bool? providerExecuted, bool dynamic, ToolInputEncoding? inputEncoding = null, string? title = null)Creates a tool-input-start part.
Parameters
| Name | Type | Description |
|---|---|---|
id |
string | |
toolName |
string | |
providerMetadata |
JsonElement? | |
providerExecuted |
bool? | |
dynamic |
bool | |
inputEncoding |
ToolInputEncoding? |
|
title |
string |
Properties
Section titled “Properties”Dynamic
Section titled “Dynamic”public bool Dynamic { get; }True for a tool the caller did not declare, or a dynamic tool.
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>.
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; }Display title of the tool. Maps to title.
Value: string
ToolMetadata
Section titled “ToolMetadata”public IReadOnlyDictionary<string, JsonElement>? ToolMetadata { get; init; }Metadata of the tool, apart from provider metadata. Maps to the part’s toolMetadata.
Value: IReadOnlyDictionary<string, JsonElement>
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