Skip to content

ToolCallNotFoundForApprovalException

Namespace: Vercel.AI.GenerateText

public sealed class ToolCallNotFoundForApprovalException : AiSdkException, ISerializable

An approval request points at a tool call that is not in the history.

Inheritance: object → Exception → AiSdkException

Implements: ISerializable

View source

ToolCallNotFoundForApprovalException(string, string)

Section titled “ToolCallNotFoundForApprovalException(string, string)”
public ToolCallNotFoundForApprovalException(string toolCallId, string approvalId)

Creates the exception.

Parameters

Name Type Description
toolCallId string
approvalId string

View source

public string ApprovalId { get; }

Approval id.

Value: string

View source

public string ToolCallId { get; }

Missing tool call id.

Value: string

View source

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