Class SummarizerAgentTemplate
A template for creating summarization agents.
Summarizer agents excel at condensing documents, conversations, meetings, and other content into concise summaries while preserving key information.
public sealed class SummarizerAgentTemplate : AgentTemplate
- Inheritance
-
SummarizerAgentTemplate
- Inherited Members
Examples
var agent = new SummarizerAgentTemplate()
.WithModel(model)
.WithContentType(SummaryContentType.Document)
.WithLength(SummaryLength.Brief)
.WithFocus("action items", "decisions")
.Build();
var result = await agent.RunAsync("Summarize this meeting transcript...");
Properties
- TemplateName
Gets the template name.
Methods
- ConfigureBuilder(AgentBuilder)
Configures the agent builder with template-specific settings.
- WithAudience(string)
Sets the target audience for the summary.
- WithContentType(SummaryContentType)
Sets the type of content being summarized.
- WithFocus(params string[])
Sets specific areas to focus on in the summary.
- WithLength(SummaryLength)
Sets the desired summary length.
- WithModel(LM)
Sets the model for the agent.
- WithPreserveStructure(bool)
Sets whether to preserve the original document structure.
- WithStyle(SummaryStyle)
Sets the summary style.