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.
SubscribeRelated
generateTextstreamTextmessage promptssystem prompts