UNPKG

agentlang

Version:

The easiest way to build the most reliable AI agents - enterprise-grade teams of AI agents that collaborate with each other and humans

21 lines 867 B
import { Relationship } from './module.js'; import { Path } from './util.js'; export type RelationshipGraphNode = { entity: Path; edges: RelationshipGraphEdge[]; }; export type RelationshipGraphEdge = { relationship: Relationship; node: RelationshipGraphNode; }; export declare class RelationshipGraph { nodes: RelationshipGraphNode[]; constructor(nodes: Array<RelationshipGraphNode>); getRoots(): RelationshipGraphNode[]; asObject(): object; private walkEdges; walk(onNode: Function, onContainsRelationship: Function, onBetweenRelationship: Function): void; } export declare function buildGraph(moduleName: string): RelationshipGraph; export declare function findEdgeForRelationship(relName: string, moduleName: string, edges: RelationshipGraphEdge[]): RelationshipGraphEdge | undefined; //# sourceMappingURL=relgraph.d.ts.map