Skip to content

PreparedTool

Namespace: Vercel.AI.Prompt

public sealed class PreparedTool

A tool after String).

Inheritance: object

View source

public PreparedTool(string type, string name)

Creates a prepared tool.

Parameters

Name Type Description
type string
name string

View source

public JsonElement? Args { get; set; }

Provider tool arguments.

Value: JsonElement?

View source

public string? Description { get; set; }

Resolved description.

Value: string

View source

public string? Id { get; set; }

Provider tool id.

Value: string

View source

public JsonElement? InputExamples { get; set; }

Input examples.

Value: JsonElement?

View source

public JsonElement? InputSchema { get; set; }

Input schema for function tools.

Value: JsonElement?

View source

public string Name { get; }

Tool name.

Value: string

View source

public JsonElement? ProviderOptions { get; set; }

Provider options.

Value: JsonElement?

View source

public bool? Strict { get; set; }

Strict mode.

Value: bool?

View source

public string Type { get; }

function or provider.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product