agsamantha/node_modules/@langchain/community/dist/graphs/graph_document.d.ts

38 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
import { Serializable } from "@langchain/core/load/serializable";
import { Document } from "@langchain/core/documents";
export declare class Node extends Serializable {
id: string | number;
type: string;
properties: Record<string, any>;
lc_namespace: string[];
constructor({ id, type, properties, }: {
id: string | number;
type: string;
properties?: Record<string, any>;
});
}
export declare class Relationship extends Serializable {
source: Node;
target: Node;
type: string;
properties: Record<string, any>;
lc_namespace: string[];
constructor({ source, target, type, properties, }: {
source: Node;
target: Node;
type: string;
properties?: Record<string, any>;
});
}
export declare class GraphDocument extends Serializable {
nodes: Node[];
relationships: Relationship[];
source: Document;
lc_namespace: string[];
constructor({ nodes, relationships, source, }: {
nodes: Node[];
relationships: Relationship[];
source: Document;
});
}