ToolExecutionOptions
Namespace: Vercel.AI
public sealed class ToolExecutionOptionsThe options a tool receives when it runs. Maps to the second argument of execute.
Inheritance: object
Constructors
Section titled “Constructors”ToolExecutionOptions(string, IReadOnlyList<ModelMessage>, CancellationToken)
Section titled “ToolExecutionOptions(string, IReadOnlyList<ModelMessage>, CancellationToken)”public ToolExecutionOptions(string toolCallId, IReadOnlyList<ModelMessage> messages, CancellationToken abortSignal)Creates the options.
Parameters
| Name | Type | Description |
|---|---|---|
toolCallId |
string | |
messages |
IReadOnlyList<ModelMessage> | |
abortSignal |
CancellationToken |
Properties
Section titled “Properties”AbortSignal
Section titled “AbortSignal”public CancellationToken AbortSignal { get; }Cancellation signal of the call.
Value: CancellationToken
Messages
Section titled “Messages”public IReadOnlyList<ModelMessage> Messages { get; }Messages sent to the model in the step that made the call.
Value: IReadOnlyList<ModelMessage>
ToolCallId
Section titled “ToolCallId”public string ToolCallId { get; }Id of the tool call.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product