ToolCallerBinding
Namespace: Vercel.AI.Operations
public sealed class ToolCallerBindingHow a tool may be called.
Inheritance: object
Constructors
Section titled “Constructors”ToolCallerBinding(string, bool)
Section titled “ToolCallerBinding(string, bool)”public ToolCallerBinding(string type, bool hasPrepareModelMessage)Creates a binding.
Parameters
| Name | Type | Description |
|---|---|---|
type |
string | |
hasPrepareModelMessage |
bool |
Properties
Section titled “Properties”public Action<IReadOnlyList<string>>? Bind { get; set; }Records the tools bound for one step and returns the bound tool.
Value: Action<IReadOnlyList<string>>
HasPrepareModelMessage
Section titled “HasPrepareModelMessage”public bool HasPrepareModelMessage { get; }True when code mode can publish a catalog message.
Value: bool
PrepareModelMessage
Section titled “PrepareModelMessage”public Func<IReadOnlyList<string>, string>? PrepareModelMessage { get; set; }Builds the catalog message from the tools visible to this caller.
Value: Func<IReadOnlyList<string>, string>
public string Type { get; }local or provider.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product