Enum WorkflowFaultKind
What kind of fault Diagnose(Func<string, bool>, Func<string, bool>, Func<string, bool>) found.
public enum WorkflowFaultKind
Fields
Invalid = 0The workflow is written wrong: an unknown step type, an invalid or duplicate id, an unreadable expression or template, a reference to a step that does not exist. It cannot be stored as written.
Incomplete = 1Something required is not filled in yet: a step that names no agent or tool, a branch or a loop with no steps, a condition, an approval message or a hand-off reason left empty. The workflow is well formed but cannot run until it is completed.
MissingAgent = 2A step runs an agent the host does not provide.
MissingTool = 3A step calls a tool the host does not provide.
ApprovalInParallel = 4A step inside a parallel branch calls a tool the host holds for a person's approval. A parallel branch cannot stop for a person, so the workflow cannot run until the step moves after the parallel step or the tool no longer asks first.
Unreachable = 5A step reads a step that cannot have run before it (one that comes later, runs only in another branch of a condition, runs at the same time in another branch of a parallel step, or is the step itself), or a step can never run (it follows a hand-off). The read would give an empty value, so the workflow cannot run until the order is fixed; a run already started on such a definition still plays.
ArgumentMismatch = 6A tool step's arguments do not meet the tool's own input schema: a required argument is missing, an argument the tool does not take is given, or a fixed value has the wrong type. The call would be refused or misread, so the workflow cannot run until the arguments are fixed.
MissingWorkflow = 7A step runs a workflow the host does not provide (not published, or not at the revision named).
WorkflowCycle = 8A
workflowstep makes workflows run each other in a circle, or nest deeper than MaxWorkflowDepth: such a run would never end, so the workflow cannot run until the circle is broken.UnknownField = 9A step reads a field of the input or of a step's answer that its schema does not declare, while the schema allows no other: the read is always empty.
ToolNotGranted = 10A tool step's tool is not granted to an API key the workflow runs under (a trigger's, a schedule's or a watched folder's): every run it starts would fail before its first step. The host names it, as only the host knows its keys.
UnpinnedRevision = 11Advice, not a fault (IsAdvisory): an agent step runs the agent's live revision, so a run resumed after the agent is published again plays the new one. Returned by Advise(), never by a diagnosis.