Lynx

genui / openui / OpenUiRendererRuntimeProps

OpenUiRendererRuntimeProps

Props for rendering raw OpenUI response text with parsing, runtime state, actions, and query execution.

属性

initialState?

optional initialState: Record<string, unknown>;

Initial persisted state. $-prefixed keys hydrate reactive bindings.

定义于

@lynx-js/genui/openui/src/core/renderer.tsx:62


isStreaming?

optional isStreaming: boolean;

Whether the LLM is still streaming; disables interactions while true.

定义于

@lynx-js/genui/openui/src/core/renderer.tsx:56


library

library: CoreLibrary<ComponentRenderer<any>>;

Component library from createOpenUiLibrary().

定义于

@lynx-js/genui/openui/src/core/renderer.tsx:54


onAction()?

optional onAction: (event: ActionEvent) => void;

Callback when a component triggers a host action.

参数

范围类型
eventActionEvent

返回

void

定义于

@lynx-js/genui/openui/src/core/renderer.tsx:58


onError()?

optional onError: (errors: OpenUIError[]) => void;

Structured parser/runtime/query errors for correction loops.

参数

范围类型
errorsOpenUIError[]

返回

void

定义于

@lynx-js/genui/openui/src/core/renderer.tsx:70


onParseResult()?

optional onParseResult: (result: any) => void;

Called whenever the raw parse result changes.

参数

范围类型
resultany

返回

void

定义于

@lynx-js/genui/openui/src/core/renderer.tsx:64


onStateUpdate()?

optional onStateUpdate: (state: Record<string, unknown>) => void;

Called whenever $variables or form state changes.

参数

范围类型
stateRecord<string, unknown>

返回

void

定义于

@lynx-js/genui/openui/src/core/renderer.tsx:60


queryLoader?

optional queryLoader: ReactNode;

Custom loading node shown while Query() calls are in flight.

定义于

@lynx-js/genui/openui/src/core/renderer.tsx:68


response

response: null | string;

Raw openui-lang response text. This enables v0.5 runtime features.

定义于

@lynx-js/genui/openui/src/core/renderer.tsx:52


toolProvider?

optional toolProvider: any;

Tool provider for Query()/Mutation(): function map or MCP client.

定义于

@lynx-js/genui/openui/src/core/renderer.tsx:66

除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。