Skip to content

ToolUIPartState

Namespace: Vercel.AI.Ui

public enum ToolUIPartState

The state of a ToolUIPart.

View source

ApprovalRequested = 2

The call waits for an approval. Maps to 'approval-requested'.

Value: ToolUIPartState

View source

ApprovalResponded = 3

The approval was answered. Maps to 'approval-responded'.

Value: ToolUIPartState

View source

InputAvailable = 1

The input is complete. Maps to 'input-available'.

Value: ToolUIPartState

View source

InputStreaming = 0

The input is still streaming. Maps to 'input-streaming'.

Value: ToolUIPartState

View source

OutputAvailable = 4

The output is available. Maps to 'output-available'.

Value: ToolUIPartState

View source

OutputDenied = 6

The approval was denied. Maps to 'output-denied'.

Value: ToolUIPartState

View source

OutputError = 5

The call failed. Maps to 'output-error'.

Value: ToolUIPartState

View source

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