Table of Contents

Class WorkflowResult

Namespace
LMKit.Agents.Workflows
Assembly
LM-Kit.NET.dll

The outcome of running or resuming a workflow (WorkflowOrchestrator): its status, its answer, what each step produced, and the run state to keep for a resume.

public sealed class WorkflowResult
Inheritance
WorkflowResult
Inherited Members

Properties

Duration

Gets how long this run or resume took.

Error

Gets why the workflow failed or was cancelled; null otherwise.

Handoff

Gets the hand-off, when the workflow ended handed off.

IsStopped

Gets whether the workflow stopped for a person and can be resumed.

Output

Gets the workflow's answer once completed; null otherwise.

RunState

Gets the workflow's run state: its position, every step's output, its timeline and, when it stopped, what it waits for (PendingRound, Question). Keep it to resume with ResumeAsync(AgentRunState, AgentRunInput, OrchestrationOptions, CancellationToken).

Status

Gets the workflow's status: completed, failed, cancelled (an approval was denied), awaiting a decision or an answer, or handed off.

StepOutputs

Gets the latest output of each step, by step id.

Share