FabricAI.Prompt

Syntax

FabricAI.Prompt(input as text, optional context as any) as text

About

返回将指定的 input 传递给 AI 模型的结果。 可以提供可选 context 值,以便指定与请求相关的其他数据。

示例 1

使用 AI 模型对产品评审进行分类。

用法

FabricAI.Prompt(
    "Categorize the review as positive, negative, or neutral, and extract a single key word in parentheses.",
    [Review = "This is a great product. It only broke four times before we had to return it!"]
)

输出

"Negative (broke)"