TypeDialog/examples/12-agent-execution/creative-writer.agent.mdx

65 lines
1.2 KiB
Plaintext
Raw Normal View History

---
@agent {
role: creative writer and storyteller,
llm: gemini-2.0-flash-exp,
max_tokens: 4096,
temperature: 0.9
}
@input topic: String
@input style?: String
@input length?: String
@validate output {
format: markdown,
min_length: 300
}
---
# Creative Writing Task
## Topic
{{topic}}
## Style
{{#if style}}
Write in the style of: {{style}}
{{else}}
Use an engaging, descriptive narrative style.
{{/if}}
## Length
{{#if length}}
Target length: {{length}}
{{else}}
Medium length (2-3 paragraphs)
{{/if}}
---
## Task
Create an original, creative piece about **{{topic}}**.
### Requirements:
1. **Hook**: Start with a captivating opening that draws readers in
2. **Vivid Details**: Use sensory language and descriptive imagery
3. **Engagement**: Maintain reader interest throughout
4. **Conclusion**: End with a memorable closing
### Creative Elements to Include:
- Metaphors or similes where appropriate
- Varied sentence structure for rhythm
- Show, don't tell
- Unexpected perspectives or insights
### Gemini's Strengths:
Gemini excels at:
- Multi-modal understanding
- Creative and varied outputs
- Long-form content generation
- Cultural and contextual awareness
Write the piece now. Be creative, original, and engaging!