For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/genui/openui/prompt/interfaces/BuildOpenUiSystemPromptOptions.md.
Lynx
  • 简体中文
  • Interface: BuildOpenUiSystemPromptOptions

    用于自定义生成的 OpenUI 系统提示词的选项。

    Extends

    Properties

    appendix?

    optional appendix?: string


    componentGroups?

    optional componentGroups?: ComponentGroup[]

    额外的组件分组;禁用默认组件时则为完整的分组集合。

    Inherited from

    CreateOpenUiPromptLibraryOptions.componentGroups


    componentNames?

    optional componentNames?: readonly string[]

    将内置组件限制为这些名称,并自动保留选定的根组件。 自定义组件始终追加;禁用默认组件时忽略此选项。

    Default Value

    All built-in components.

    Example

    `componentNames: ['Stack', 'Text']`

    Inherited from

    CreateOpenUiPromptLibraryOptions.componentNames


    components?

    optional components?: OpenUiPromptComponent[]

    额外的组件;禁用默认组件时则为完整的组件集合。

    Inherited from

    CreateOpenUiPromptLibraryOptions.components


    includeDefaultComponents?

    optional includeDefaultComponents?: boolean

    是否包含内置组件和组件分组。

    Default Value

    true

    Inherited from

    CreateOpenUiPromptLibraryOptions.includeDefaultComponents


    promptOptions?

    optional promptOptions?: PromptOptions


    root?

    optional root?: string

    根组件名称;禁用默认组件时需自行提供其定义。

    Default Value

    'Stack'

    Inherited from

    CreateOpenUiPromptLibraryOptions.root

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