§
    ¦ìNg  ã                  óš   — d dl mZ d dlmZmZ d dlmZ d dlmZ d dl	m
Z
  G d„ de¦  «        Z G d„ d	e¦  «        Z G d
„ de¦  «        ZdS )é    )Úannotations)ÚListÚUnion)ÚDocument)ÚSerializable)ÚFieldc                  óN   — e Zd ZU dZded<   d Zded<    ee¬¦  «        Zded<   d	S )
ÚNodea,  Represents a node in a graph with associated properties.

    Attributes:
        id (Union[str, int]): A unique identifier for the node.
        type (str): The type or label of the node, default is "Node".
        properties (dict): Additional properties and metadata associated with the node.
    zUnion[str, int]ÚidÚstrÚtype©Údefault_factoryÚdictÚ
propertiesN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__r   r   r   r   © ó    úe/var/www/html/ai-engine/env/lib/python3.11/site-packages/langchain_community/graphs/graph_document.pyr
   r
   
   sY   € € € € € € ðð ð ÐÐÑØ€DÐÐÐÑØu¨TÐ2Ñ2Ô2€JÐ2Ð2Ð2Ñ2Ð2Ð2r   r
   c                  óT   — e Zd ZU dZded<   ded<   ded<    ee¬¦  «        Zded	<   d
S )ÚRelationshipaS  Represents a directed relationship between two nodes in a graph.

    Attributes:
        source (Node): The source node of the relationship.
        target (Node): The target node of the relationship.
        type (str): The type of the relationship.
        properties (dict): Additional properties associated with the relationship.
    r
   ÚsourceÚtargetr   r   r   r   r   N)r   r   r   r   r   r   r   r   r   r   r   r   r      sW   € € € € € € ðð ð €L€LLØ€L€LLØ€I€IIØu¨TÐ2Ñ2Ô2€JÐ2Ð2Ð2Ñ2Ð2Ð2r   r   c                  ó2   — e Zd ZU dZded<   ded<   ded<   dS )	ÚGraphDocumenta9  Represents a graph document consisting of nodes and relationships.

    Attributes:
        nodes (List[Node]): A list of nodes in the graph.
        relationships (List[Relationship]): A list of relationships in the graph.
        source (Document): The document from which the graph information is derived.
    z
List[Node]ÚnodeszList[Relationship]Úrelationshipsr   r   N)r   r   r   r   r   r   r   r   r   r   (   sB   € € € € € € ðð ð ÐÐÑØ%Ð%Ð%Ñ%ØÐÐÑÐÐr   r   N)Ú
__future__r   Útypingr   r   Úlangchain_core.documentsr   Ú langchain_core.load.serializabler   Úpydanticr   r
   r   r   r   r   r   ú<module>r'      sí   ðØ "Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð Ð Ð Ð Ð à -Ð -Ð -Ð -Ð -Ð -Ø 9Ð 9Ð 9Ð 9Ð 9Ð 9Ø Ð Ð Ð Ð Ð ð3ð 3ð 3ð 3ð 3ˆ<ñ 3ô 3ð 3ð3ð 3ð 3ð 3ð 3<ñ 3ô 3ð 3ð ð ð ð ð Lñ ô ð ð ð r   