Skip to content
ballmüllersolutions logo Send an email Call us
November 27, 2026

Artificial intelligence (AI)

Artificial intelligence (AI) means software that solves tasks that would otherwise need human intelligence. For .NET developers today, it is above all a service that you address through an interface.

Artificial intelligence (AI) is an umbrella term for techniques with which machines solve tasks that would otherwise require human intelligence, such as understanding language, recognizing patterns, or writing texts. Whoever speaks of AI today usually means a language model behind an interface.

Keeping the terms clean

Microsoft arranges the terms like this: an algorithm is a finite sequence of unambiguous steps. Machine learning is an AI technique in which algorithms learn patterns from data and build predictive models from them (more under machine learning). Generative AI creates new content, such as text, images, or code, from an input in ordinary language. Language models are the part of it that concentrates on texts. They describe language through the probability of words and sequences of words in a context.

Because such a model creates new, statistically similar content, it does not return the same output for every identical input. That is not a fault but part of the method, and it is the reason why tests for AI features look different from unit tests (quality assurance).

Building AI in as a developer

In .NET, the abstraction IChatClient from Microsoft.Extensions.AI is at the center. It describes a client for AI services with chat capability: sending messages and receiving answers in full or as a stream. Libraries for models and services supply implementations; your code only addresses the interface. This makes it possible to switch the provider, and additional features such as caching, telemetry, or function calls can be placed around the client as layers.

using Microsoft.Extensions.AI;

public sealed class SummaryService(IChatClient client)
{
    public async Task<string> SummarizeAsync(string text, CancellationToken ct)
    {
        ChatResponse response = await client.GetResponseAsync(
            [
                new(ChatRole.System, "Summarize the text in two sentences."),
                new(ChatRole.User, text),
            ],
            cancellationToken: ct);

        return response.Text;
    }
}

The interface's documentation points out that applications themselves have to watch risks such as prompt injection, data volumes, and the number of messages sent, as long as an implementation does not promise any safeguards.

An example from the Kladde

In the AI track, the Kladde, the sample application of a small IT office, gets AI features: an assessment of the tenders it imports from the EU's public TED interface, a support chat, an agent for offers, and an MCP server. The track first runs locally with Foundry Local, without an Azure subscription.

Common misconceptions

In the course

You learn this in the AI track, module T1, in the lessons What a language model does and Responsible AI and the EU AI Act. You build the client in module T2, in the lesson The IChatClient.

Further reading on the blog

Sources