AI Open SDKfor Business Central

Introduction

What AI Open SDK is and when to use it from AL.

AI Open SDK is a provider-agnostic AI library for Microsoft Dynamics 365 Business Central, written in AL. Call large language models through one client API, with structured output, tools, retries, image generation, and an in-core mock provider for tests.

It is a library you depend on from your extensions. It is not Copilot, not a hosted AI service, and not a Microsoft product.

Status: v0.1 (usable client + providers; pre-1.0, public APIs may still change).

What you get

CapabilitySurface
Text and image generation"AIOS Client" + a provider factory
Structured JSON"AIOS Schema" with validation (optional RecRef binding)
Tool calling"AIOS Tool Set" with automatic multi-step loops
Retries / backoffShared across text and image calls
Unit tests without keys"AIOS Mock" in Core

Provider selection is a dependency and factory change. Callers keep using "AIOS Client" and "AIOS Language Model".

Packaging

Core ships as one Business Central app. Each live provider is a separate extension. Install only what you call. HTTP goes directly to the provider; this is not a wrapper around System.AI.

AppRole
AI Open SDKClient, schema, tools, interfaces, Mock
AI Open SDK AnthropicClaude text models
AI Open SDK OpenAIOpenAI chat and image
AI Open SDK OpenCode ZenOpenCode Zen gateway
AI Open SDK OpenAI CompatibleAny Chat Completions base URL

Some providers also pull AI Open SDK Provider Utils (shared Chat Completions helpers). Application code does not call Provider Utils directly.

When to use it

SituationChoice
Microsoft-hosted Copilot / System.AI capabilityUse System.AI / Copilot
Third-party provider, self-hosted endpoint, or AI logic you must unit-testUse AI Open SDK

Next steps

GoalPage
Install and run GenerateTextGetting Started
Client, schema, tools, mock, retriesConcepts
Factory setup per vendorProviders

On this page