OpenUIError

data class OpenUIError

A structured, LLM-friendly error from the OpenUI pipeline (mirrors OpenUIError).

Only errors that can be fixed by changing the OpenUI Lang code are reported, which makes them suitable for an automated correction loop (send them back to the model as a follow-up).

Types

Link copied to clipboard
data class Source(val wireName: String)

Where an error comes from. wireName is the reference implementation's name. A class rather than an enum so new sources can be added without breaking exhaustive whens.

Properties

Link copied to clipboard

Machine-readable code, e.g. unknown-component, missing-required, tool-not-found.

Link copied to clipboard
Link copied to clipboard
val hint: String?

Actionable fix context (available components, the correct signature, ...).

Link copied to clipboard

Whether the program still renders despite it, such as a no-root fallback entry.

Link copied to clipboard
Link copied to clipboard
val path: String?

Prop path, e.g. /title.

Link copied to clipboard
Link copied to clipboard

Statement to patch (e.g. header).

Link copied to clipboard

Tool name for query/mutation errors.

Functions

Link copied to clipboard
open override fun toString(): String