# AiCompilationResult class

Namespace: [Grasshopper2.Components.Descriptive](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.components.descriptive.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class AiCompilationResult
```

Outcome of compiling LLM source. On success carries the compiled [AiComponentLogic](https://developer.rhino3d.com/api/gh2/type/grasshopper2.components.descriptive.aicomponentlogic.md); on failure carries diagnostics for the next round.

## Constructors

- [AiCompilationResult](https://developer.rhino3d.com/api/gh2/type/grasshopper2.components.descriptive.aicompilationresult/ctor.md)

## Properties

- [Diagnostics](https://developer.rhino3d.com/api/gh2/type/grasshopper2.components.descriptive.aicompilationresult/diagnostics.md): All diagnostics produced by the compiler. Never null.
- [Logic](https://developer.rhino3d.com/api/gh2/type/grasshopper2.components.descriptive.aicompilationresult/logic.md): The compiled logic, or null if compilation failed.
- [Success](https://developer.rhino3d.com/api/gh2/type/grasshopper2.components.descriptive.aicompilationresult/success.md): True iff [AiCompilationResult.Logic](https://developer.rhino3d.com/api/gh2/type/grasshopper2.components.descriptive.aicompilationresult/logic.md) was produced.
