> ## Documentation Index
> Fetch the complete documentation index at: https://ancplua.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AL0074 - Deprecated GenAI semantic convention

> GenAI attributes have been renamed or deprecated

Source: [Al0074DeprecatedGenAiAttributeAnalyzer.cs](https://github.com/ANcpLua/ANcpLua.Analyzers/blob/main/src/ANcpLua.Analyzers/Analyzers/Al0074DeprecatedGenAiAttributeAnalyzer.cs)

## Description

Some GenAI semantic convention attributes have been renamed or deprecated. Update to current attribute names.

## Bad Code

```csharp theme={null}
activity?.SetTag("gen_ai.prompt", userMessage);
```

## Good Code

```csharp theme={null}
activity?.SetTag("gen_ai.request.input", userMessage);
```

## Properties

* **Category**: GenAI
* **Severity**: Warning
* **Enabled by default**: True
* **Code fix available**: True

## Configuration

```editorconfig theme={null}
dotnet_diagnostic.AL0074.severity = warning
```
