Guides AI deployment model capabilities, parameters, and slots in CrestApps.OrchardCore 3.0. Covers capability features, slot resolution, and migration from legacy purpose values.
Ships in crestapps-orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A deployment says what its model can do (capabilities, also called trained features) and which
options it exposes (model parameters). Where a deployment gets used is a slot: each picker and each
resolver asks for a slot, and only deployments with the slot's required capability qualify. This replaces
the deployment purpose of 2.x. Everything here ships with the base CrestApps.OrchardCore.AI feature;
the types come from CrestApps.Core (CrestApps.Core.AI.Models, CrestApps.Core.AI.Deployments,
CrestApps.Core.AI.Capabilities).
textGeneration is opt-out: a deployment with no capability metadata at all is treated as text capable.
Every other capability is opt-in.AIDeploymentSlotNames), never by name pattern or provider.ResolveSlotAsync with the chat deployment as a fallback, not with two
independent resolves joined by ??.Feature name (AIDeploymentFeatureNames) | Meaning |
|---|---|
textGeneration | Answers text chat completions |
toolCalling | Calls tools supplied with the request |
structuredOutputs | Returns JSON that follows a supplied schema |
streaming | Streams response updates |
reasoning | Reasons before answering; unlocks reasoningEffort |
textEmbedding | Generates embedding vectors (dedicated embedding models only) |
imageInput | Understands images (fills the vision slot) |
imageOutput | Generates images |
audioInput, audioOutput, videoInput, videoOutput | Accepts or produces audio or video |
speechToText | Dedicated transcription model such as Whisper |
textToSpeech | Dedicated speech synthesis model |
realtime | Holds speech-to-speech sessions. Excluded from the chat and utility slots |
New deployments start from the features each provider marks as enabled by default (text conversation, tool calling and streaming for a chat model).
Slot (AIDeploymentSlotNames) | Value | Required capability | Site default (DefaultAIDeploymentSettings) |
|---|---|---|---|
Chat | chat | textGeneration, excludes realtime | DefaultChatDeploymentName |
Utility | utility | textGeneration, excludes realtime; falls back to chat | DefaultUtilityDeploymentName |
Embedding | embedding | textEmbedding | DefaultEmbeddingDeploymentName |
Image | image | imageOutput | DefaultImageDeploymentName |
Vision | vision | imageInput | DefaultVisionDeploymentName |
SpeechToText | speechToText | speechToText | DefaultSpeechToTextDeploymentName |
TextToSpeech | textToSpeech | textToSpeech | DefaultTextToSpeechDeploymentName |
Realtime | realtime | realtime | DefaultRealtimeDeploymentName |
Site defaults are set on the Default deployments card of Settings > Artificial Intelligence or with the
Settings recipe step (DefaultAIDeploymentSettings, see orchardcore-ai). The chat deployment picker
on profiles, templates and chat interactions lists text-capable deployments; a speech-to-speech model goes
in the separate Conversation deployment picker (see orchardcore-ai-realtime-voice).
In the admin, open Artificial Intelligence > Deployments, edit a deployment and use the
Model capabilities card (Trained features plus Model parameters). In recipes and configuration
the same data lives under Properties.AIDeploymentMetadata:
{
"steps": [
{
"name": "AIDeployment",
"Deployments": [
{
"Name": "reasoning-default",
"ClientName": "OpenAI",
"ConnectionName": "openai-cloud",
"ModelName": "o4-mini",
"Properties": {
"AIDeploymentMetadata": {
"Features": [ "textGeneration", "reasoning", "streaming", "toolCalling" ],
"Parameters": {
"reasoningEffort": {
"AllowedValues": [ "Low", "Medium", "High" ],
"DefaultValue": "Medium"
}
}
}
}
},
{
"Name": "vision-default",
"ClientName": "OpenAI",
"ConnectionName": "openai-cloud",
"ModelName": "gpt-4.1-mini",
"Properties": {
"AIDeploymentMetadata": {
"Features": [ "textGeneration", "imageInput", "streaming" ]
}
}
}
]
}
]
}
The appsettings.json form is identical inside OrchardCore:CrestApps:AI:Deployments[].
reasoningEffort is the parameter that ships. It is a choice parameter with values None (shown as
Minimal), Low, Medium, High, ExtraHigh, default Medium, and requires reasoning.AllowedValues and DefaultValue, and numeric parameters with
Minimum, Maximum and Step. A parameter not listed under Parameters is not exposed.AIDeploymentParametersMetadata:{
"Properties": {
"AIDeploymentParametersMetadata": {
"Values": { "reasoningEffort": "High" },
"UtilityValues": { "reasoningEffort": "Low" }
}
}
}
Use deployment default stores nothing, and a request carrying a value the deployment does not allow
falls back to its DefaultValue.
using CrestApps.Core.AI.Deployments;
using CrestApps.Core.AI.Models;
using CrestApps.OrchardCore.AI.Core;
using Microsoft.AspNetCore.Mvc.Rendering;
public sealed class SummaryDeploymentResolver
{
private readonly IAIDeploymentManager _deploymentManager;
public SummaryDeploymentResolver(IAIDeploymentManager deploymentManager)
{
_deploymentManager = deploymentManager;
}
// For a display driver's drop-down: deployments that can fill the slot, grouped by connection.
public Task<IEnumerable<SelectListItem>> GetPickerItemsAsync()
=> _deploymentManager.GetSelectListBySlotAsync(AIDeploymentSlotNames.Utility);
// Utility work: the selected utility deployment, else the site utility default,
// else the profile's chat deployment, else the site chat default, else the first capable one.
public ValueTask<AIDeployment> ResolveAsync(AIProfile profile, CancellationToken cancellationToken)
=> _deploymentManager.ResolveSlotAsync(
AIDeploymentSlotNames.Utility,
deploymentName: profile.UtilityDeploymentName,
fallbackDeploymentNames: new Dictionary<string, string>
{
[AIDeploymentSlotNames.Chat] = profile.ChatDeploymentName,
},
cancellationToken: cancellationToken);
}
GetAllBySlotAsync(slotName, clientName, cancellationToken) lists qualifying deployments;
GetSelectListBySlotAsync(slotName, standaloneGroupName) (in CrestApps.OrchardCore.AI.Core) turns them
into SelectListItems grouped by connection, labelled name (model) when the two differ.ResolveSlotAsync(slotName, deploymentName, clientName, fallbackDeploymentNames, cancellationToken)
returns null when nothing qualifies; handle that.clientName to keep a companion deployment on the same provider, for example an embedding
deployment for a chat deployment's provider:
ResolveSlotAsync(AIDeploymentSlotNames.Embedding, clientName: chatDeployment?.ClientName).IAIDeploymentCapabilityService (CrestApps.Core.AI.Capabilities) merges the registered definitions with
what a deployment declares:
var capabilities = _capabilityService.GetCapabilities(deployment);
if (capabilities.SupportsFeature(AIDeploymentFeatureNames.Realtime))
{
// A speech-to-speech model: do not send it a text completion.
}
var canChat = _capabilityService.SupportsFeatureOrUnconstrained(deployment, AIDeploymentFeatureNames.TextGeneration);
var realtimeDeployments = await _capabilityService.GetDeploymentsWithFeatureAsync(AIDeploymentFeatureNames.Realtime);
AIDeploymentMetadata.SupportsFeature(name) answers for the declared metadata alone.
A module or provider adds definitions without changing the framework:
using CrestApps.Core.AI.Models;
using Microsoft.Extensions.Localization;
services.AddAIDeploymentFeature(
"citations",
new LocalizedString("citations", "Native citations"),
feature =>
{
feature.Category = "Trained Features";
feature.EnabledByDefault = false;
});
services.AddAIDeploymentParameter(
"citationStyle",
new LocalizedString("citationStyle", "Citation style"),
parameter =>
{
parameter.Kind = AIDeploymentParameterKind.Choice;
parameter.AllowedValues =
[
new AIDeploymentParameterOption { Value = "inline", DisplayName = new LocalizedString("inline", "Inline") },
new AIDeploymentParameterOption { Value = "footnote", DisplayName = new LocalizedString("footnote", "Footnote") },
];
parameter.DefaultValue = "inline";
parameter.RequiredFeature = "citations";
});
AIDeploymentParameterKind is Choice, Number, Integer, Boolean or Text.
services.AddAIDeploymentSlot(name, displayName, slot => { ... }) registers a slot; its descriptor sets
RequiredFeature, ExcludedFeature, FallbackSlotName, AllowUnconstrained, Order and
GetDefaultDeploymentName (a Func<DefaultAIDeploymentSettings, string>). A parameter is only useful
when something binds it into the request; the shipped reasoningEffort binder lives in CrestApps.Core.
No action is required for stored data. A record that still carries Purpose, Capability or Type (in
the store, a recipe, appsettings.json or the API) is projected onto capabilities whenever it is read:
| Legacy purpose | Capabilities |
|---|---|
Chat, Utility | textGeneration, toolCalling, streaming (none if the deployment declares realtime) |
Embedding | textEmbedding |
Image | imageOutput |
Vision | imageInput |
SpeechToText | speechToText |
TextToSpeech | textToSpeech |
The AIDeploymentTypeMigrations step (UpdateFrom7) also rewrites stored deployments so their JSON
declares these capabilities and drops the legacy field. Configuration deployments are untouched (they are
read-only and projected on every read). Code changes:
| 2.x | 3.0 |
|---|---|
GetByPurposeAsync(AIDeploymentPurpose.Chat) / GetAllByPurposeAsync | GetAllBySlotAsync(AIDeploymentSlotNames.Chat) |
ResolveOrDefaultAsync(AIDeploymentPurpose.X, deploymentName: n) | ResolveSlotAsync(AIDeploymentSlotNames.X, deploymentName: n) |
AIDeployment.Purpose, Type, SupportsPurpose, SupportsType, CanServeTextCompletion | IAIDeploymentCapabilityService.GetCapabilities(deployment).SupportsFeature(...) |
"Purpose": "Embedding" in recipes | "Properties": { "AIDeploymentMetadata": { "Features": [ "textEmbedding" ] } } |
| The Purposes checkboxes | The Model capabilities card |
Before 3.0 a deployment that had never declared capabilities could be saved with Features = []; it is
now offered the defaults instead.
| Symptom | Check |
|---|---|
| A deployment is missing from a picker | It does not declare the slot's required capability, or it declares realtime (excluded from chat and utility) |
| Tools or streaming stopped after an import | The recipe declared only textGeneration; add toolCalling and streaming |
| A parameter does not show on a profile | The selected deployment does not list it under Parameters, or its RequiredFeature is not declared |
| Background work runs on an unexpected model | Resolve utility with fallbackDeploymentNames carrying the chat deployment |
orchardcore-ai for deployments, defaults and profiles.orchardcore-ai-providers for per-provider deployment examples.orchardcore-ai-realtime-voice for the realtime slot, conversation deployments and cascaded realtime.orchardcore-ai-usage-analytics for metering the clients created from these deployments.What SKILL.md sets; muted values are Claude Code's defaults
/crestapps-orchardcore:orchardcore-ai-model-capabilitiesfrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcore137 skills in this plugin
/orchardcore-accountsSkill for the CrestApps Orchard Core Accounts module (CrestApps.OrchardCore.Accounts) with its Account Members, Account Team, Account E-mail Domains and Account Locations features. Covers the Account type and AccountPart, the account picker and search, IAccountChildTypeRule, account page sections (AccountPageTabs, AddPageSection, Notes), members and IAccountMemberService, account invitations, the account owner and team picked from staff, e-mail domains, locations with a billing location, the account's billing profile and party members, the Accounts recipe and deployment steps, and the admin menu. Use this skill when requests mention accounts, the businesses or households records belong to, an account page tab, members, invitations, owners, domains or locations. Strong matches include AccountPart, AccountPageTabs, IAccountMemberService, IAccountInvitationService, AccountInvitation, AccountTeamPart, AccountEmailDomainsPart, IAccountEmailDomains, AccountLocationsPart and ManageAccountMembers./orchardcore-accounts-b2bSkill for the CrestApps Orchard Core Accounts B2B module (CrestApps.OrchardCore.Accounts.B2B), business selling on an Account content item. Covers B2BAccountPart and B2BAccount, buyers as account members and ship-to addresses as account locations, terms (deposit, net days, credit limit) through the account-terms tender billed to the account, the account's billing profile, purchase order numbers, quotes, price lists through IBuyerPriceProvider, order limits, approvals and budgets, OCI punchout, the account/business page and API, the PriceLists recipe and deployment steps, the B2BAccounts report source, and the move from the removed Companies module. Use this skill when requests mention B2B, wholesale or business buyers, net terms, purchase orders, price lists, order approvals or punchout. Strong matches include B2BAccountPart, B2BAccount, AccountTerms, AccountTermsTenderProvider, B2BAccountBillingProfileSource, IB2BAccountStore, PriceList, B2BPriceProvider, B2BApprovalService and ManageB2BAccounts.Other plugins' skills for the same job