Generating text with code
Build foundation model prompts programmatically by using various development methods and coding languages.
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