ToolUIPartState
Namespace: Vercel.AI.Ui
public enum ToolUIPartStateThe state of a ToolUIPart.
Fields
Section titled “Fields”ApprovalRequested
Section titled “ApprovalRequested”ApprovalRequested = 2The call waits for an approval. Maps to 'approval-requested'.
Value: ToolUIPartState
ApprovalResponded
Section titled “ApprovalResponded”ApprovalResponded = 3The approval was answered. Maps to 'approval-responded'.
Value: ToolUIPartState
InputAvailable
Section titled “InputAvailable”InputAvailable = 1The input is complete. Maps to 'input-available'.
Value: ToolUIPartState
InputStreaming
Section titled “InputStreaming”InputStreaming = 0The input is still streaming. Maps to 'input-streaming'.
Value: ToolUIPartState
OutputAvailable
Section titled “OutputAvailable”OutputAvailable = 4The output is available. Maps to 'output-available'.
Value: ToolUIPartState
OutputDenied
Section titled “OutputDenied”OutputDenied = 6The approval was denied. Maps to 'output-denied'.
Value: ToolUIPartState
OutputError
Section titled “OutputError”OutputError = 5The call failed. Maps to 'output-error'.
Value: ToolUIPartState
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product