ToolExecutionStartEvent
Namespace: Vercel.AI
public class ToolExecutionStartEventPassed to OnToolExecutionStart before a tool runs.
Inheritance: object
Derived: ToolExecutionEndEvent
Constructors
Section titled “Constructors”ToolExecutionStartEvent(GeneratedToolCall, IReadOnlyList<ModelMessage>)
Section titled “ToolExecutionStartEvent(GeneratedToolCall, IReadOnlyList<ModelMessage>)”public ToolExecutionStartEvent(GeneratedToolCall toolCall, IReadOnlyList<ModelMessage> messages)Creates an event.
Parameters
| Name | Type | Description |
|---|---|---|
toolCall |
GeneratedToolCall | |
messages |
IReadOnlyList<ModelMessage> |
Properties
Section titled “Properties”Messages
Section titled “Messages”public IReadOnlyList<ModelMessage> Messages { get; }The messages the model received in the step that made the call.
Value: IReadOnlyList<ModelMessage>
ToolCall
Section titled “ToolCall”public GeneratedToolCall ToolCall { get; }The call about to run.
Value: GeneratedToolCall
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product