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

    继承

    • BaseSpec

    属性

    additionalRules?

    optional additionalRules?: string[]


    bindings?

    optional bindings?: boolean

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


    componentGroups?

    optional componentGroups?: ComponentGroup$1[]

    继承自

    BaseSpec.componentGroups


    components

    components: Record<string, ComponentPromptSpec>

    继承自

    BaseSpec.components


    editMode?

    optional editMode?: boolean


    examples?

    optional examples?: string[]

    通用示例(静态 / 布局类模式)。examples 和 toolExamples 同时存在时都会包含。


    id?

    optional id?: string

    继承自

    BaseSpec.id


    inlineMode?

    optional inlineMode?: boolean


    preamble?

    optional preamble?: string


    root?

    optional root?: string

    继承自

    BaseSpec.root


    toolCalls?

    optional toolCalls?: boolean

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


    toolExamples?

    optional toolExamples?: string[]

    与工具相关的示例(Query/Mutation 模式)。examples 和 toolExamples 同时存在时都会包含。


    tools?

    optional tools?: (string | ToolSpec)[]

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