Class CompensationResult
- Namespace
- Emissary
- Assembly
- Emissary.dll
The outcome of one saga compensation performed by CompensateAsync(AgentResult, CancellationToken).
public sealed record CompensationResult : IEquatable<CompensationResult>
- Inheritance
-
CompensationResult
- Implements
- Inherited Members
Constructors
CompensationResult(string, string, bool, string)
The outcome of one saga compensation performed by CompensateAsync(AgentResult, CancellationToken).
public CompensationResult(string ToolName, string ToolUseId, bool Success, string Output)
Parameters
ToolNamestringThe compensated tool's wire name.
ToolUseIdstringThe original tool-use id.
SuccessboolWhether the compensation handler succeeded.
OutputstringThe handler's output, or the failure message.
Properties
Output
The handler's output, or the failure message.
public string Output { get; init; }
Property Value
Success
Whether the compensation handler succeeded.
public bool Success { get; init; }
Property Value
ToolName
The compensated tool's wire name.
public string ToolName { get; init; }
Property Value
ToolUseId
The original tool-use id.
public string ToolUseId { get; init; }