Agent skill · software engineering · aiskillstore
azure-ai-openai-dotnet
Azure OpenAI SDK for .NET. Client library for Azure OpenAI and OpenAI services. Use for chat completions, embeddings, image generation, audio transcription, and assistants.
Why this skill is useful
Provides specific commands and patterns for integrating Azure OpenAI services in .NET applications that the AI wouldn't reliably generate on its own.
What it needs
Requires dotnet installed locally. Requires azure account access. About 5k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Azure.AI.OpenAI (.NET) Client library for Azure OpenAI Service providing access to OpenAI models including GPT-4, GPT-4o, embeddings, DALL-E, and Whisper. Installation Current Version: 2.1.0 (stable) Environment Variables Client Hierarchy Authentication API Key Authentication Microsoft Entra ID (Recommended for Production) Using OpenAI SDK Directly with Azure Chat Completions Basic Chat Async Chat Streaming Chat Chat with Options Multi-turn Conversation Structured Outputs (JSON Schema) Reasoning Models (o1, o4-mini) Azure AI Search Integration (RAG) Embeddings Batch Embeddings Image Generation (DALL-E) Audio (Whisper) Transcription Text-to-Speech Function Calling (Tools) Key Types Reference Type Purpose ------ --------- AzureOpenAIClient Top-level client for Azure OpenAI ChatClient Chat completions EmbeddingClient Text embeddings ImageClient Image generation (DALL-E) AudioClient Audio transcription/TTS ChatCompletion Chat response ChatCompletionOptions Request configuration StreamingChatCompletionUpdate Streaming response chunk ChatMessage Base message type SystemChatMessage System prompt UserChatMessage User input AssistantChatMessage Assistant response DeveloperChatMessage Developer message (reasoning models) ChatTool Function/tool definition ChatToolCall Tool invocation request Best Practices 1. Use Entra ID in production — Avoid API keys; use DefaultAzureCredential 2. Reuse client instances — Create once, share across requests 3. Handle rate limits — Implement exponential backoff for 429 errors 4. Stream for long responses — Use CompleteChatStreamingAsync for better UX 5. Set appropriate timeouts — Long completions may need extended timeouts 6. Use structured outputs — JSON schema ensures consistent response format 7. Monitor token usage — Track completion.Usage for cost management 8. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/azure-ai-openai-dotnet