crestapps/crestapps.agentskills/crestapps-core-azure-ai-inference

Claude Code and agent skill by crestapps/crestapps.agentskills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Skill for using Azure AI Inference, Azure AI Foundry serverless models, and GitHub Models in CrestApps.Core 2.0. Covers AddAzureAIInference and AddCoreAIAzureAIInference registration, connections with the AzureAIInference client name, Endpoint, AuthenticationType (Default, ApiKey, ManagedIdentity) and IdentityId, configured chat and embedding deployments that declare model capabilities through Features and Parameters instead of the removed Purpose or Type, deployment slots resolved with Resolve…

Install

npx vskill@latest install crestapps/crestapps.agentskills/crestapps-core-azure-ai-inference

SKILL.md

The same SKILL.md was published earlier as crestapps/crestapps.agentskills/crestapps-core-azure-ai-inference.

CrestApps.Core Azure AI Inference

The CrestApps.Core.AI.AzureAIInference package uses the Azure.AI.Inference SDK to reach one endpoint that serves many model families (OpenAI, Meta Llama, Mistral, Cohere, and others). It is the provider for GitHub Models and for serverless model deployments in Azure AI Foundry.

Guidelines

  • Use it for multi-model evaluation, GitHub Models prototypes, and serverless Azure model catalog deployments.
  • Keep the endpoint and credentials on the connection; keep the model name and its capabilities on the deployment.
  • Always set AuthenticationType. When it is empty the provider uses DefaultAzureCredential, even if ApiKey is set. A GitHub token needs "AuthenticationType": "ApiKey".
  • Only chat and embeddings are supported. Image generation, speech-to-text, text-to-speech and realtime throw NotSupportedException; use crestapps-core-openai or crestapps-core-azure-openai for those.
  • Declare features per model. Tool calling, vision and structured outputs vary across the catalog; declare only what the chosen model supports.

Registration

csharp
using CrestApps.Core.AI.AzureAIInference;
builder.Services.AddCrestAppsCore(crestApps => crestApps
.AddAISuite(ai => ai
.AddAzureAIInference()
)
);

Without the suite builder, register the core and orchestration services as well; AddCoreAIAzureAIInference() alone adds only the provider:

csharp
builder.Services
.AddCoreAIServices()
.AddCoreAIOrchestration()
.AddCoreAIAzureAIInference();

It registers AzureAIInferenceClientProvider, the ProviderAICompletionClient<AzureAIInferenceClientMarker> completion client, a connection source, and a deployment provider for AzureAIInferenceConstants.ClientName ("AzureAIInference").

Configuration

json
{
"CrestApps": {
"AI": {
"Connections": [
{
"Name": "github-models",
"ClientName": "AzureAIInference",
"Endpoint": "https://models.inference.ai.azure.com",
"AuthenticationType": "ApiKey",
"ApiKey": "ghp_your-token-with-models-read"
},
{
"Name": "foundry",
"ClientName": "AzureAIInference",
"Endpoint": "https://your-project.inference.ai.azure.com",
"AuthenticationType": "ManagedIdentity"
}
],
"Deployments": [
{
"ClientName": "AzureAIInference",
"ConnectionName": "github-models",
"Name": "gpt-4o-mini",
"Features": [ "textGeneration", "toolCalling", "streaming" ]
},
{
"ClientName": "AzureAIInference",
"ConnectionName": "github-models",
"Name": "llama-3.3-70b",
"ModelName": "Llama-3.3-70B-Instruct",
"Features": [ "textGeneration", "streaming" ]
},
{
"ClientName": "AzureAIInference",
"ConnectionName": "github-models",
"Name": "text-embedding-3-small",
"Features": [ "textEmbedding" ]
}
]
}
}
}
AuthenticationTypeCredential
Default or emptyDefaultAzureCredential
ApiKeyAzureKeyCredential(ApiKey) (GitHub token or Azure key)
ManagedIdentityManagedIdentityCredential, user-assigned when IdentityId is set
  • ModelName is the catalog model name sent to the endpoint and falls back to Name.
  • A configured deployment with no Features (and no legacy Purpose/Type) is skipped with "declares no model capabilities".
  • Features and Parameters on the entry are shorthand for Properties:AIDeploymentMetadata:* and keep environment variable names short.
  • A connection may instead declare ChatDeploymentName (read-only deployment with textGeneration, toolCalling, streaming) or EmbeddingDeploymentName (textEmbedding). Do not use the connection shorthand for a model that cannot call tools: it always declares toolCalling.

Resolve Through Slots

csharp
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 ModelComparisonService
{
private readonly IAIDeploymentManager _deploymentManager;
private readonly IAICompletionService _completionService;
public ModelComparisonService(IAIDeploymentManager deploymentManager, IAICompletionService completionService)
{
_deploymentManager = deploymentManager;
_completionService = completionService;
}
public async Task<IReadOnlyDictionary<string, string>> CompareAsync(string prompt, CancellationToken cancellationToken = default)
{
var results = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
var candidates = await _deploymentManager.GetAllBySlotAsync(
AIDeploymentSlotNames.Chat,
clientName: "AzureAIInference",
cancellationToken: cancellationToken);
foreach (var deployment in candidates)
{
var response = await _completionService.CompleteAsync(
deployment,
[new ChatMessage(ChatRole.User, prompt)],
new AICompletionContext { DisableTools = true },
cancellationToken);
results[deployment.Name] = response.Text;
}
return results;
}
}

GetAllBySlotAsync(AIDeploymentSlotNames.Chat, ...) returns only deployments that declare textGeneration and are not realtime. Use ResolveSlotAsync(AIDeploymentSlotNames.Chat, deploymentName) to pick one, with fallback to the site default in DefaultAIDeploymentSettings.DefaultChatDeploymentName.

Troubleshooting

  • 401 or credential errors with a GitHub token: AuthenticationType is not ApiKey.
  • The model says it will call a tool but nothing runs: the deployment does not declare toolCalling, or the model does not support tools. Check the model card and declare features accordingly.
  • `NotSupportedException` for images or speech: those clients do not exist for this provider; register a deployment on another provider and resolve it through the matching slot.
  • GitHub Models rate limits: the free tier is for experimentation; move production traffic to an Azure AI Foundry endpoint.

Upgrading from 1.x

  • Replace "Type": "Chat" or "Purpose": "Chat" with "Features": [ ... ]. Legacy Purpose, Capability and Type values still load, but the projection is narrow: Chat or Utility becomes textGeneration only (not when realtime is declared), and Embedding, Image, Vision, SpeechToText and TextToSpeech become textEmbedding, imageOutput, imageInput, speechToText and textToSpeech. A 1.x chat entry therefore loses tool calling and streaming until toolCalling and streaming are declared.
  • Replace ResolveOrDefaultAsync(AIDeploymentPurpose.X, ...) with ResolveSlotAsync(AIDeploymentSlotNames.X, ...) and purpose lookups with GetAllBySlotAsync.
  • Check that every connection that authenticates with a key or GitHub token sets "AuthenticationType": "ApiKey".

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/crestapps/crestapps.agentskills/crestapps-core-azure-ai-inference/badge)](https://verified-skill.com/skills/crestapps/crestapps.agentskills/crestapps-core-azure-ai-inference)

Something wrong with this skill or its page? Tell us.