Skip to content

Features

Agent and AI tools

  • LibraryTemplateAgent - wraps AIAgent and IChatClient.
  • AgentHelper.CreateLibraryTemplateAgent - factory.
  • LibraryTemplateAITools - static AIFunctions: 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)

  • LibraryTemplateAgentMcpTool
  • MicrosoftLearnMcpClient with SearchDocsAsync, FetchDocsAsync, SearchCodeSamplesAsync (built on ModelContextProtocol.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/Redaction and ConnectSoft.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.

See also