Table of Contents

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

ToolName string

The compensated tool's wire name.

ToolUseId string

The original tool-use id.

Success bool

Whether the compensation handler succeeded.

Output string

The handler's output, or the failure message.

Properties

Output

The handler's output, or the failure message.

public string Output { get; init; }

Property Value

string

Success

Whether the compensation handler succeeded.

public bool Success { get; init; }

Property Value

bool

ToolName

The compensated tool's wire name.

public string ToolName { get; init; }

Property Value

string

ToolUseId

The original tool-use id.

public string ToolUseId { get; init; }

Property Value

string