Generating text with code
Last updated: Mar 25, 2025
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
Was the topic helpful?
0/1000