Tool Output Denied
class ToolOutputDenied(val toolCallId: String, val toolName: String, val approvalId: String, val reason: String? = null, val providerMetadata: ProviderMetadata = ProviderMetadata.None) : StreamEvent(source)
The host denied a previously requested approval. v6's tool-output-denied (per historical parity gaps #6 + #7). Distinct from ToolError — denial is a CHOICE, not a failure. The matching UI part transitions through ai.torad.aisdk.ui.ToolCallState.OutputDenied.
Since
0.3.0-beta01
Constructors
Link copied to clipboard
constructor(toolCallId: String, toolName: String, approvalId: String, reason: String? = null, providerMetadata: ProviderMetadata = ProviderMetadata.None)