# ILLamaExecutor
Namespace: LLama.Abstractions
A high level interface for LLama models.
```csharp
public interface ILLamaExecutor
```
## Properties
### **Model**
The loaded model for this executor.
```csharp
public abstract LLamaModel Model { get; }
```
#### Property Value
[LLamaModel](./llama.llamamodel.md)
## Methods
### **Infer(String, InferenceParams, CancellationToken)**
Infers a response from the model.
```csharp
IEnumerable Infer(string text, InferenceParams inferenceParams, CancellationToken token)
```
#### Parameters
`text` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
Your prompt
`inferenceParams` [InferenceParams](./llama.common.inferenceparams.md)
Any additional parameters
`token` [CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken)
A cancellation token.
#### Returns
[IEnumerable<String>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1)
### **InferAsync(String, InferenceParams, CancellationToken)**
```csharp
IAsyncEnumerable InferAsync(string text, InferenceParams inferenceParams, CancellationToken token)
```
#### Parameters
`text` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
`inferenceParams` [InferenceParams](./llama.common.inferenceparams.md)
`token` [CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken)
#### Returns
[IAsyncEnumerable<String>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.iasyncenumerable-1)