Skip to content
masterclass Buddy

AI Tools · Tool

Few-shot Prompting

Text prompts are string instructions for a language model. Pass them with the prompt property to functions such as generateText or streamText; use template literals when the prompt needs runtime values.

Last updated

Syntax

generateText({ model, prompt: string })
streamText({ model, prompt: string })

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • generateText
  • streamText
  • message prompts
  • system prompts

Source: Prompts. Checked 2026-11-03.