PreparedTool
Namespace: Vercel.AI.Prompt
public sealed class PreparedToolA tool after String).
Inheritance: object
Constructors
Section titled “Constructors”PreparedTool(string, string)
Section titled “PreparedTool(string, string)”public PreparedTool(string type, string name)Creates a prepared tool.
Parameters
| Name | Type | Description |
|---|---|---|
type |
string | |
name |
string |
Properties
Section titled “Properties”public JsonElement? Args { get; set; }Provider tool arguments.
Value: JsonElement?
Description
Section titled “Description”public string? Description { get; set; }Resolved description.
Value: string
public string? Id { get; set; }Provider tool id.
Value: string
InputExamples
Section titled “InputExamples”public JsonElement? InputExamples { get; set; }Input examples.
Value: JsonElement?
InputSchema
Section titled “InputSchema”public JsonElement? InputSchema { get; set; }Input schema for function tools.
Value: JsonElement?
public string Name { get; }Tool name.
Value: string
ProviderOptions
Section titled “ProviderOptions”public JsonElement? ProviderOptions { get; set; }Provider options.
Value: JsonElement?
Strict
Section titled “Strict”public bool? Strict { get; set; }Strict mode.
Value: bool?
public string Type { get; }function or provider.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product