Skip to content

ToolValidationContext

Namespace: Vercel.AI.GenerateText

public sealed class ToolValidationContext

Where tool-context validation failed.

Inheritance: object

View source

public ToolValidationContext(string field, string entityName)

Creates context.

Parameters

Name Type Description
field string
entityName string

View source

public string EntityName { get; }

Tool name.

Value: string

View source

public string Field { get; }

Field name. Tool context uses tool context.

Value: string

View source

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