Text generation with code (draft)
Last updated: Mar 04, 2025
Text generation with code (draft)

Build foundation model prompts programmatically.

Experiment with different ways to prompt foundation models programmatically, including:

  • Text generation: Focus on the basic interaction, where you submit input to a foundation model and get output. You manage the larger workflow of the solution. See Text generation.
  • Chat: Build a conversational workflow that adds options for different input types, including model instructions, multimedia inputs, and tool definitions. See Chat.

Parent topic: Building prompts