Skip to content
masterclass Buddy

AI Tools · Tool

Outlines

generateText creates text from a language model and can call tools. It is suited to automation and other non-interactive tasks.

Last updated

Syntax

generateText({ model, instructions, prompt, messages, tools, ... })

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

Subscribe
  • tool
  • LanguageModel
  • SystemModelMessage
  • UserModelMessage
  • AssistantModelMessage
  • ToolModelMessage
  • generateText

Source: generateText | AI SDK Reference. Checked 2026-11-03.