Methods
addNode
- addNode(node, module): void
Returns void
connect
- connect(from, to, condition?): void
Parameters
- from: string
- to: string
Optional
condition: ((context) => boolean)- (context): boolean
Returns boolean
Returns void
validate
- validate(): {
valid: boolean;
errors: string[];
} Returns {
valid: boolean;
errors: string[];
}
valid: boolean
errors: string[]
getStats
- getStats(): {
nodeCount: number;
edgeCount: number;
complexity: "low" | "medium" | "high";
} Returns {
nodeCount: number;
edgeCount: number;
complexity: "low" | "medium" | "high";
}
nodeCount: number
edgeCount: number
complexity: "low" | "medium" | "high"
Directed Acyclic Graph (DAG) for complex reasoning workflows. Enables sophisticated cognitive flows with conditional branching and parallel execution.