Class PluginResult<T>
- Namespace
- FoundationaLLM.Common.Models.Plugins
- Assembly
- FoundationaLLM.Common.dll
The result of an operation executed by a plugin.
public record PluginResult<T> : PluginResult, IEquatable<PluginResult>, IEquatable<PluginResult<T>> where T : class
Type Parameters
T
- Inheritance
-
PluginResult<T>
- Implements
- Inherited Members
- Extension Methods
Remarks
If StopProcessing
is true, the caller of the plugin should not attempt again to ask
the plugin to process the same work item. The plugin will set this property to true if it has
identified a permanent error that will not be resolved by retrying the operation.
Constructors
PluginResult(T?, bool, bool, string?)
The result of an operation executed by a plugin.
public PluginResult(T? Value, bool Success, bool StopProcessing, string? ErrorMessage = null)
Parameters
Value
TThe result of the operation.
Success
boolIndicates whether the operation executed successfully or not.
StopProcessing
boolIndicates whether further processing should stop or not.
ErrorMessage
stringWhen IsSuccess is false, contains an error message with details.
Remarks
If StopProcessing
is true, the caller of the plugin should not attempt again to ask
the plugin to process the same work item. The plugin will set this property to true if it has
identified a permanent error that will not be resolved by retrying the operation.
Properties
Value
The result of the operation.
public T? Value { get; init; }
Property Value
- T