Table of Contents

Class WorkflowFault

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

One reason a workflow cannot run, located: the step it is about, the field of that step, and what kind of fault it is. Diagnose(Func<string, bool>, Func<string, bool>, Func<string, bool>) returns them.

public sealed class WorkflowFault
Inheritance
WorkflowFault
Inherited Members

Constructors

WorkflowFault(WorkflowFaultKind, string, string, string)

Creates a fault.

Properties

AllowsDraft

Gets whether the fault is one of a well-formed workflow that is not finished or names what the host lacks (Invalid excluded): such a workflow can be kept as a draft, never run.

Field

Gets the JSON name of the field the fault is about (agent, tool, input, when, output...); null when it is about the whole step or workflow.

IsAdvisory

Gets whether this is advice that blocks nothing (Advise()), rather than a fault.

Kind

Gets what kind of fault it is.

Message

Gets the fault in words.

StepId

Gets the id of the step the fault is about, as written; null for the workflow itself.

Methods

ToString()
Share