genui / openui / OpenUIContextValue
OpenUIContextValue
Runtime context shared by OpenUI renderers, hooks, actions, and form fields.
Properties
evaluationContext
AST evaluation context used by runtime expression evaluation.
Defined in
@lynx-js/genui/openui/src/core/context.tsx:78
getFieldValue()
Get a field value. Top-level for $bindings, nested under formName for form fields.
Parameters
Returns
any
Defined in
@lynx-js/genui/openui/src/core/context.tsx:53
isQueryLoading
Whether any Query is currently fetching data.
Defined in
@lynx-js/genui/openui/src/core/context.tsx:49
isStreaming
Whether the LLM is currently streaming content.
Defined in
@lynx-js/genui/openui/src/core/context.tsx:46
library
The active component library (schema + renderers).
Defined in
@lynx-js/genui/openui/src/core/context.tsx:20
renderNode()
Render any value (element, array, primitive) into React nodes.
Parameters
Returns
ReactNode
Defined in
@lynx-js/genui/openui/src/core/context.tsx:25
reportError()?
Report a structured error (used internally by error boundary).
Parameters
Returns
void
Defined in
@lynx-js/genui/openui/src/core/context.tsx:81
setFieldValue()
Set a form field value.
Parameters
Returns
void
Defined in
@lynx-js/genui/openui/src/core/context.tsx:66
store
Reactive binding store for $variables and form data.
Defined in
@lynx-js/genui/openui/src/core/context.tsx:75
triggerAction()
Trigger an action. Accepts either:
- ActionPlan (v0.5): runs steps sequentially (Run, Set, ToAssistant, OpenUrl)
- Legacy action config (v0.1): object with optional type and params.
- Nothing: fires ContinueConversation with the label
Parameters
Returns
void | Promise<void>
Defined in
@lynx-js/genui/openui/src/core/context.tsx:33