Skip to content

ToolCallerBinding

Namespace: Vercel.AI.Operations

public sealed class ToolCallerBinding

How a tool may be called.

Inheritance: object

View source

public ToolCallerBinding(string type, bool hasPrepareModelMessage)

Creates a binding.

Parameters

Name Type Description
type string
hasPrepareModelMessage bool

View source

public Action<IReadOnlyList<string>>? Bind { get; set; }

Records the tools bound for one step and returns the bound tool.

Value: Action<IReadOnlyList<string>>

View source

public bool HasPrepareModelMessage { get; }

True when code mode can publish a catalog message.

Value: bool

View source

public Func<IReadOnlyList<string>, string>? PrepareModelMessage { get; set; }

Builds the catalog message from the tools visible to this caller.

Value: Func<IReadOnlyList<string>, string>

View source

public string Type { get; }

local or provider.

Value: string

View source

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