Skip to content

ToolExecutionStartEvent

Namespace: Vercel.AI

public class ToolExecutionStartEvent

Passed to OnToolExecutionStart before a tool runs.

Inheritance: object

Derived: ToolExecutionEndEvent

View source

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>

View source

public IReadOnlyList<ModelMessage> Messages { get; }

The messages the model received in the step that made the call.

Value: IReadOnlyList<ModelMessage>

View source

public GeneratedToolCall ToolCall { get; }

The call about to run.

Value: GeneratedToolCall

View source

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