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/core/interfaces/PromptOptions.md.
Lynx
  • 简体中文
  • 接口: PromptOptions

    属性

    additionalRules?

    optional additionalRules?: string[]


    bindings?

    optional bindings?: boolean

    启用 $variables、@Set、@Reset 和交互式筛选。默认:启用 toolCalls 时为 true。


    editMode?

    optional editMode?: boolean

    在提示词中加入编辑模式的说明。


    examples?

    optional examples?: string[]

    没有工具时展示的示例(静态 / 布局类模式)。


    inlineMode?

    optional inlineMode?: boolean

    启用内联模式:LLM 可以用文本作答,并可附带 openui-lang 代码块。


    preamble?

    optional preamble?: string


    toolCalls?

    optional toolCalls?: boolean

    启用 Query()、Mutation()、@Run 和工具工作流。默认:提供了工具时为 true。


    toolExamples?

    optional toolExamples?: string[]

    有工具时展示的示例(Query/Mutation 模式),优先于 examples。


    tools?

    optional tools?: ToolDescriptor[]

    Query() 可用的工具,可以是字符串名称或丰富的 ToolSpec 描述,会注入到提示词中。

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