Features¶
Agent and AI tools¶
LibraryTemplateAgent- wrapsAIAgentandIChatClient.AgentHelper.CreateLibraryTemplateAgent- factory.LibraryTemplateAITools- staticAIFunctions:GenerateLibraryAsync,PreflightValidationAsync,ResolveFlagsAsync,InstantiateTemplateAsync,ValidateTemplateAsync,SummarizeResultsAsync. These are example tools to replace with your domain logic.
Dependency injection¶
AISkillsLibraryTemplateExtensions exposes:
AddAISkillsLibraryTemplateServices()AddAISkillsLibraryTemplateAgent()AddAISkillsLibraryTemplateEmbeddings()AddAISkillsLibraryTemplateMcpTools()
Redaction is wired through RedactionExtensions.
Vector embeddings¶
IEmbeddingPipeline / LibraryTemplateEmbeddingPipeline with ContentItem and VectorRecord models, built on Microsoft.Extensions.VectorData.Abstractions.
Model Context Protocol (MCP)¶
LibraryTemplateAgentMcpToolMicrosoftLearnMcpClientwithSearchDocsAsync,FetchDocsAsync,SearchCodeSamplesAsync(built onModelContextProtocol.Core).
Options and models¶
Options classes: LibraryTemplateOptions, AgentFrameworkOptions, EmbeddingOptions, McpToolOptions, AgentDefaultOptions, validated by ValidateLibraryTemplateOptions. Request/result records live under Models/Requests/ and Models/Results/, with ErrorCodes and AgentException.
Observability and compliance¶
LibraryTemplateTelemetry(ActivitySource"ConnectSoft.AISkillsLibraryTemplate"),LibraryTemplateMetrics,AgentFrameworkMetrics,LibraryTemplateDiagnostics.- Compliance via
Microsoft.Extensions.Compliance.Abstractions/RedactionandConnectSoft.Extensions.Compliance.
Key dependencies¶
Microsoft.Extensions.AI 10.6.0, Microsoft.Agents.AI 1.6.1, Microsoft.Extensions.VectorData.Abstractions 10.6.0, ModelContextProtocol.Core 1.3.0, plus standard Options/Logging/DI/Http/Diagnostics extensions.