genui / openui / UseOpenUIStateOptions
UseOpenUIStateOptions
Inputs used to parse OpenUI text and build renderer state.
属性
initialQueryResults?
Prefetched Query results keyed by the Query assignment name (statement ID). They are available during the initial render and act as fallbacks while an optional tool provider revalidates them after commit.
定义于
@lynx-js/genui/openui/src/core/hooks/useOpenUIState.ts:105
initialState?
定义于
@lynx-js/genui/openui/src/core/hooks/useOpenUIState.ts:99
isStreaming
定义于
@lynx-js/genui/openui/src/core/hooks/useOpenUIState.ts:96
library
定义于
@lynx-js/genui/openui/src/core/hooks/useOpenUIState.ts:95
onAction()?
参数
返回
void
定义于
@lynx-js/genui/openui/src/core/hooks/useOpenUIState.ts:97
onError()?
Callback for structured, LLM-friendly errors. See OpenUIError type.
参数
返回
void
定义于
@lynx-js/genui/openui/src/core/hooks/useOpenUIState.ts:109
onStateUpdate()?
参数
返回
void
定义于
@lynx-js/genui/openui/src/core/hooks/useOpenUIState.ts:98
response
定义于
@lynx-js/genui/openui/src/core/hooks/useOpenUIState.ts:94
toolProvider?
ToolProvider for Query data fetching — MCP, REST, GraphQL, or any backend.
定义于
@lynx-js/genui/openui/src/core/hooks/useOpenUIState.ts:107