Method Validate
Validate(Func<string, bool>, Func<string, bool>)
Why the workflow cannot run, every reason at once; empty when it can. Unknown step types, missing fields, unreadable conditions and templates, timeouts, retries and error handlers out of bounds or on steps that take none, references to steps that do not exist, duplicate ids, reads of a step that cannot have run yet, and (when the host says what it has) agents and tools it does not provide are each named.
public IReadOnlyList<string> Validate(Func<string, bool> agentExists = null, Func<string, bool> toolExists = null)
Parameters
agentExistsFunc<string, bool>The host's answer to "is there an agent with this name?"; null skips the check.
toolExistsFunc<string, bool>The host's answer to "is there a tool with this name?"; null skips the check.
Returns
- IReadOnlyList<string>
The faults, in words.