Table of Contents

Class StepResult

Namespace
AiDotNet.Interfaces
Assembly
AiDotNet.dll

Represents the result of executing a single step in a chain.

public class StepResult
Inheritance
StepResult
Inherited Members

Remarks

For Beginners: Information about one step's execution.

Includes:

  • What the step produced (output)
  • How long it took (duration)
  • Any errors that occurred
  • Token usage (if available)

Properties

DurationMs

Gets or sets the execution duration in milliseconds.

public long DurationMs { get; set; }

Property Value

long

ErrorMessage

Gets or sets any error message from this step.

public string? ErrorMessage { get; set; }

Property Value

string

Input

Gets or sets the input to this step.

public string Input { get; set; }

Property Value

string

IsSuccessful

Gets or sets whether this step executed successfully.

public bool IsSuccessful { get; set; }

Property Value

bool

Output

Gets or sets the output from this step.

public string Output { get; set; }

Property Value

string

StepName

Gets or sets the name of the step.

public string StepName { get; set; }

Property Value

string

TokenCount

Gets or sets the token count used by this step (if applicable).

public int? TokenCount { get; set; }

Property Value

int?