Sintaxe
M
FabricAI.Prompt(input as text, optional context as any) as textParâmetros
- inputtextObrigatório
Instrução (prompt) enviada ao modelo de IA.
M"Categorize the review as positive, negative, or neutral, and extract a single key word in parentheses."- contextanyOpcional
Dados adicionais relevantes para a solicitação.
M[Review = "This is a great product. It only broke four times before we had to return it!"]
Retorna
textExemplo
M
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!"]
)Resultado
M
"Negative (broke)"Mais informações
- Subgrupo
- FabricAI