Class WriterAgentTemplate
A template for creating content writing agents.
Writer agents specialize in creating various types of written content with configurable tone, style, and format.
public sealed class WriterAgentTemplate : AgentTemplate
- Inheritance
-
WriterAgentTemplate
- Inherited Members
Examples
var agent = new WriterAgentTemplate()
.WithModel(model)
.WithContentType(ContentType.BlogPost)
.WithTone(WritingTone.Professional)
.WithAudience("business executives")
.Build();
var result = await agent.RunAsync("Write about AI trends in 2024");
Properties
- TemplateName
Gets the template name.
Methods
- ConfigureBuilder(AgentBuilder)
Configures the agent builder with template-specific settings.
- WithAudience(string)
Sets the target audience.
- WithBrandVoice(string)
Sets brand voice guidelines.
- WithContentType(ContentType)
Sets the type of content to create.
- WithModel(LM)
Sets the model for the agent.
- WithSeoOptimization(bool)
Enables SEO optimization.
- WithTone(WritingTone)
Sets the writing tone.
- WithWordCount(int)
Sets target word count.