What are Generation Types?
Generation types define what kind of output your prompt will produce. AgentMark supports four types of generation, each optimized for different use cases:- Text - Natural language responses for chatbots, content generation, and analysis
- Object - Structured JSON data with schema validation for APIs and data extraction
- Image - Visual content generation using models like DALL-E
- Speech - Audio output for voice applications and text-to-speech
Choosing the Right Type
| Type | Best For | Output Format | Example Use Cases |
|---|---|---|---|
| Text | Conversational AI, content writing | String | Chatbots, summarization, Q&A |
| Object | Structured data extraction | JSON with schema | Form parsing, data normalization, API responses |
| Image | Visual content creation | Image file | Marketing assets, illustrations, prototypes |
| Speech | Voice applications | Audio file | Podcasts, audiobooks, voice assistants |
Configuration
Each generation type is configured in the prompt’s frontmatter using specific config keys:Loading Prompts
Use the appropriate loader method based on your generation type:Detailed Guides
Text Generation
Natural language responses with conversation history
Object Generation
Structured JSON with schema validation
Image Generation
Visual content with DALL-E and similar models
Speech Generation
Audio synthesis with voice customization