Skip to content

ApprovalToolCallPart

Namespace: Vercel.AI.GenerateText

public sealed class ApprovalToolCallPart : ApprovalHistoryPart

A tool call stored in assistant history.

Inheritance: object → ApprovalHistoryPart

View source

ApprovalToolCallPart(string, string, JsonElement)

Section titled “ApprovalToolCallPart(string, string, JsonElement)”
public ApprovalToolCallPart(string toolCallId, string toolName, JsonElement input)

Creates a tool call part.

Parameters

Name Type Description
toolCallId string
toolName string
input JsonElement

View source

public JsonElement Input { get; }

Tool input.

Value: JsonElement

View source

public string ToolCallId { get; }

Tool call id.

Value: string

View source

public string ToolName { get; }

Tool name.

Value: string

View source

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