Crestapps core overview

From CrestApps/CrestApps.AgentSkills · View interactive version

Crestapps core overview is an AI agent skill from the GitHub repository CrestApps/CrestApps.AgentSkills. Entry point for CrestApps.Core 2.0 in any ASP.NET Core or generic .NET host. Covers the full NuGet package map, the AddCrestAppsCore and AddAISuite builder chain, the CrestApps AI Connections and Deployments configuration layout, declaring deployment model capabilities (Features) and resolving deplo

How to use this skill

Skill file

CrestApps.Core Overview

You are a CrestApps.Core expert. Start here to pick packages, compose the builder chain, configure connections and deployments, and route the rest of the task to the right crestapps-core-* skill.

Guidelines

Smallest Useful Setup

<ItemGroup>
  <PackageReference Include="CrestApps.Core.AI.Chat" />
  <PackageReference Include="CrestApps.Core.AI.OpenAI" />
  <PackageReference Include="CrestApps.Core.Data.EntityCore" />
</ItemGroup>

CrestApps.Core.AI.Chat brings CrestApps.Core, CrestApps.Core.AI and their abstractions transitively; list them explicitly only when you prefer explicit references.

using CrestApps.Core;
using CrestApps.Core.AI;
using CrestApps.Core.AI.Chat;
using CrestApps.Core.AI.OpenAI;
using CrestApps.Core.Data.EntityCore;

builder.Services.AddCrestAppsCore(crestApps => crestApps
    .AddAISuite(ai => ai
        .AddEntityCoreStores()
        .AddOpenAI()
        .AddChatInteractions(chat => chat.AddEntityCoreStores())
    )
    .AddEntityCoreSqliteDataStore("Data Source=crestapps.db")
);

var app = builder.Build();
await app.Services.InitializeEntityCoreSchemaAsync();

A console or worker that only calls IAICompletionService needs no store: AddAISuite(ai => ai.AddOpenAI()) and configured deployments are enough.

Configuration with Capabilities

{
  "CrestApps": {
    "AI": {
      "Connections": [
        {
          "Name": "primary-openai",
          "ClientName": "OpenAI",
          "ApiKey": "YOUR_API_KEY"
        }
      ],
      "Deployments": [
        {
          "Name": "gpt-4.1",
          "ConnectionName": "primary-openai",
          "ModelName": "gpt-4.1",
          "Features": [ "textGeneration", "toolCalling", "streaming", "imageInput" ]
        },
        {
          "Name": "gpt-4.1-mini",
          "ConnectionName": "primary-openai",
          "ModelName": "gpt-4.1-mini",
          "Features": [ "textGeneration", "toolCalling", "streaming" ]
        },
        {
          "Name": "text-embedding-3-small",
          "ConnectionName": "primary-openai",
          "ModelName": "text-embedding-3-small",
          "Features": [ "textEmbedding" ]
        }
      ]
    }
  }
}

Resolve a Deployment by Slot

using CrestApps.Core.AI.Completions;
using CrestApps.Core.AI.Deployments;
using CrestApps.Core.AI.Models;
using Microsoft.Extensions.AI;

namespace MyApp.Services;

public sealed class QuickAnswerService
{
    private readonly IAIDeploymentManager _deploymentManager;
    private readonly IAICompletionService _completionService;

    public QuickAnswerService(
        IAIDeploymentManager deploymentManager,
        IAICompletionService completionService)
    {
        _deploymentManager = deploymentManager;
        _completionService = completionService;
    }

    public async Task<string> AskAsync(string question, CancellationToken cancellationToken = default)
    {
        var deployment = await _deploymentManager.ResolveSlotAsync(
            AIDeploymentSlotNames.Chat,
            cancellationToken: cancellationToken);

        if (deployment is null)
        {
            return "No deployment can fill the chat slot. Check CrestApps:AI:Deployments.";
        }

        var response = await _completionService.CompleteAsync(
            deployment,
            [new ChatMessage(ChatRole.User, question)],
            new AICompletionContext(),
            cancellationToken);

        return response.Text;
    }
}

Resolution order for a slot is: the explicit deployment name, the slot's site default from DefaultAIDeploymentSettings (for example DefaultChatDeploymentName), the fallback slot's explicit name and default (utility falls back to chat), and only then the first capable deployment. Use GetAllBySlotAsync(slotName) to fill a picker, and ResolveSlotOrThrowAsync(slotName) from AIDeploymentManagerExtensions when a missing deployment is a configuration error. Details live in crestapps-core-ai-model-capabilities.

Package Map

| Area | Packages | Skill |

|---|---|---|

| Foundation | CrestApps.Core.Abstractions, CrestApps.Core, CrestApps.Core.Infrastructure.Abstractions, CrestApps.Core.Infrastructure, CrestApps.Core.Support | crestapps-core-foundations |

| AI runtime | CrestApps.Core.AI.Abstractions, CrestApps.Core.AI | crestapps-core-ai-runtime |

| Chat and sessions | CrestApps.Core.AI.Chat | crestapps-core-chat, crestapps-core-chat-interactions |

| AG-UI | CrestApps.Core.AI.AGUI (plus CrestApps.Core.AI.Chat for RunAgent and MapAGUIChat) | crestapps-core-ag-ui |

| Realtime voice | CrestApps.Core.AI.WebRTC (plus CrestApps.Core.AI.Chat) | crestapps-core-realtime-voice |

| SignalR hubs | CrestApps.Core.SignalR | crestapps-core-signalr |

| Templates | CrestApps.Core.Templates | crestapps-core-templates, crestapps-core-ai-templates |

| Markdown | CrestApps.Core.AI.Markdown | crestapps-core-ai-markdown |

| Resilience | CrestApps.Core.AI.Resilience | crestapps-core-resilience |

| Observability | CrestApps.Core.OpenTelemetry | crestapps-core-observability |

| Ingestion | CrestApps.Core.AI.Ingestion, CrestApps.Core.AI.Ingestion.Pdf, CrestApps.Core.Azure.DocumentIntelligence, CrestApps.Core.DataIngestion | crestapps-core-document-processing |

| Documents and generated files | CrestApps.Core.AI.Documents, CrestApps.Core.AI.Documents.OpenXml, CrestApps.Core.AI.Documents.Pdf, CrestApps.Core.AI.Documents.Word | crestapps-core-document-processing, crestapps-core-document-agents |

| File sources | CrestApps.Core.AI.FileSources, CrestApps.Core.AI.Ftp, CrestApps.Core.AI.Sftp | crestapps-core-file-sources, crestapps-core-mcp-file-resources |

| Web crawlers | CrestApps.Core.AI.WebCrawlers | crestapps-core-web-crawlers |

| MCP | CrestApps.Core.AI.Mcp, CrestApps.Core.AI.Mcp.Knowledge | crestapps-core-mcp |

| WebMCP | CrestApps.Core.AI.WebMcp, npm @crestapps/webmcp | crestapps-core-webmcp |

| A2A | CrestApps.Core.AI.A2A | crestapps-core-a2a |

| Providers | CrestApps.Core.AI.OpenAI, CrestApps.Core.AI.OpenAI.Azure, CrestApps.Core.AI.AzureAIInference, CrestApps.Core.AI.Ollama, CrestApps.Core.Azure | provider skills below |

| Speech voices | CrestApps.Core.AI.ElevenLabs, CrestApps.Core.AI.Cartesia | crestapps-core-speech-voices |

| Orchestrators | CrestApps.Core.AI.Claude, CrestApps.Core.AI.Copilot | crestapps-core-claude-orchestrator, crestapps-core-copilot-orchestrator |

| Search backends | CrestApps.Core.Elasticsearch + CrestApps.Core.AI.Elasticsearch, CrestApps.Core.Azure.AISearch + CrestApps.Core.AI.Azure.AISearch, CrestApps.Core.PostgreSQL + CrestApps.Core.AI.PostgreSQL | crestapps-core-elasticsearch, crestapps-core-azure-ai-search, crestapps-core-postgresql |

| Storage | CrestApps.Core.Data.EntityCore, CrestApps.Core.Data.YesSql | crestapps-core-entitycore-stores, crestapps-core-yessql-stores |

| Chat UI assets | npm @crestapps/ai-chat-ui (the CrestApps.AI.Resources Razor class library is not published to NuGet) | crestapps-core-aspnet-hosting |

Common Builder Calls

| Need | Builder call | Package |

|---|---|---|

| Chat sessions, Chat Interactions, hubs | .AddChatInteractions(...) | CrestApps.Core.AI.Chat |

| Uploaded documents and document RAG | .AddDocumentProcessing(dp => dp.AddOpenXml().AddPdf().AddWord()) | CrestApps.Core.AI.Documents* |

| Ingestion only (no chat document stack) | services.AddCoreAIDocumentIngestion(i => i.AddPlainTextReader().AddPdf()) | CrestApps.Core.AI.Ingestion* |

| Usage metering | .AddUsageTracking() | CrestApps.Core.AI |

| User, session and past-conversation memory | .AddAIMemory(...) | CrestApps.Core.AI |

| Speaking styles, guardrails | .AddSpeakingStyles(), .AddGuardrails() | CrestApps.Core.AI (see crestapps-core-ai-profiles) |

| Conversation privacy | .AddConversationPrivacy() | CrestApps.Core.AI.Chat |

| Profile versions | .AddProfileVersions(v => v.AddYesSqlStores()) | store packages |

| Browser tools (WebMCP) | .AddWebMcp(webMcp => webMcp.AddPageTools<THub>()) and app.MapWebMcpTools() | CrestApps.Core.AI.WebMcp |

| AG-UI over HTTP for other clients | app.MapAGUIChat<THub>() (the chat hub's RunAgent needs nothing) | CrestApps.Core.AI.Chat |

| ElevenLabs or Cartesia voices | .AddElevenLabs(), .AddCartesia() | CrestApps.Core.AI.ElevenLabs, CrestApps.Core.AI.Cartesia |

| Personas | .AddPersonas(personas => personas.AddYesSqlStores()) | CrestApps.Core.AI |

| User-configured tool instances | .AddToolInstances(...) | CrestApps.Core.AI |

| MCP client or server | .AddMcpClient(...), .AddMcpServer(...) | CrestApps.Core.AI.Mcp |

| Remote A2A agents | .AddA2AClient(...) | CrestApps.Core.AI.A2A |

| SignalR with commit filter | .AddSignalR(addStoreCommitterFilter: true) | CrestApps.Core.SignalR |

| Search backends | .AddIndexingServices(i => i.AddElasticsearch(...)) on the root builder | search packages |

| Durable stores | .AddEntityCoreStores() or .AddYesSqlStores() per feature builder, plus .AddEntityCoreSqliteDataStore(...) or .AddYesSqlDataStore(...) on the root builder | store packages |

Skill Index

Hosting and infrastructure

AI runtime

Chat and voice

Knowledge and documents

Protocols and providers

For Orchard Core modules built on CrestApps.Core, use the orchardcore-ai family of skills instead.

Upgrading Within 2.0 Previews

Upgrading from 1.x

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.