Interface: OpenUIError
Structured, LLM-friendly error from the openui-lang pipeline.
Designed for an automated correction loop: send these to the LLM so it can generate patches. Only includes errors that are fixable by changing the openui-lang code — transient streaming errors, network failures, and tool execution errors are excluded.
Properties
code
code:
OpenUIErrorCode
Machine-readable error code.
component?
optionalcomponent?:string
Component type name (e.g. "BarChart", "Query").
hint?
optionalhint?:string
Actionable fix context for the LLM (e.g. available components, correct signature).
message
message:
string
Human/LLM-readable description of what went wrong.
path?
optionalpath?:string
Prop path (e.g. "/title").
source
source:
OpenUIErrorSource
Where the error originated.
statementId?
optionalstatementId?:string
Statement name (e.g. "header", "metrics") — tells the LLM which statement to patch.
toolName?
optionaltoolName?:string
Tool name for query/mutation errors (e.g. "get_users", "create_item").