# StatelessExecutor
Namespace: LLama
This executor infer the input as one-time job. Previous inputs won't impact on the
response to current input.
```csharp
public class StatelessExecutor : LLama.Abstractions.ILLamaExecutor
```
Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [StatelessExecutor](./llama.statelessexecutor.md)
Implements [ILLamaExecutor](./llama.abstractions.illamaexecutor.md)
## Properties
### **Model**
The mode used by the executor when running the inference.
```csharp
public LLamaModel Model { get; }
```
#### Property Value
[LLamaModel](./llama.llamamodel.md)
## Constructors
### **StatelessExecutor(LLamaModel)**
```csharp
public StatelessExecutor(LLamaModel model)
```
#### Parameters
`model` [LLamaModel](./llama.llamamodel.md)
The LLama model.
## Methods
### **Infer(String, InferenceParams, CancellationToken)**
```csharp
public IEnumerable Infer(string text, InferenceParams inferenceParams, CancellationToken cancellationToken)
```
#### Parameters
`text` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
`inferenceParams` [InferenceParams](./llama.common.inferenceparams.md)
`cancellationToken` [CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken)
#### Returns
[IEnumerable<String>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1)
### **InferAsync(String, InferenceParams, CancellationToken)**
```csharp
public 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)