Skip to main content
net10.0net11.0

Detect known LLM and agentic execution contexts

Published
Nov 8, 2026
10d ago
Total Downloads
34.4K
34,353

Install

dotnet add package Meziantou.Framework.LLMContext --version 2.0.4
ProductVersions
.NET
net10.0net11.0

README

Meziantou.Framework.LLMContext

Meziantou.Framework.LLMContext detects known LLM and agentic execution contexts from environment variables. The types are in the Meziantou.Framework.LLMContext namespace.

if (LLMContextDetector.IsLLMContext())
{
    IReadOnlyList<LLMContextKind> contexts = LLMContextDetector.Detect();
    Assert.NotEmpty(contexts);
}

Changes from Previous Version

No structural changes between v2.0.3 and v2.0.4.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.