gllm-core-binary 0.4.13__cp313-cp313-win_amd64.whl → 0.4.14__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  from gllm_core.schema.chunk import Chunk as Chunk
2
2
  from gllm_core.schema.component import Component as Component, main as main
3
3
  from gllm_core.schema.event import Event as Event
4
+ from gllm_core.schema.graph import Edge as Edge, Graph as Graph, Node as Node
4
5
  from gllm_core.schema.tool import Tool as Tool, tool as tool
5
6
 
6
- __all__ = ['Chunk', 'Component', 'Event', 'Tool', 'main', 'tool']
7
+ __all__ = ['Chunk', 'Component', 'Edge', 'Event', 'Graph', 'Node', 'Tool', 'main', 'tool']
@@ -0,0 +1,47 @@
1
+ from pydantic import BaseModel
2
+ from typing import Any
3
+
4
+ class Node(BaseModel):
5
+ '''Represents a node in a graph with associated metadata.
6
+
7
+ Attributes:
8
+ id (str): A unique identifier for the node. Defaults to a random UUID.
9
+ type (str): The type or label of the node. Defaults to "Node".
10
+ metadata (dict[str, Any]): Additional metadata associated with the node.
11
+ Defaults to an empty dictionary.
12
+ '''
13
+ id: str
14
+ type: str
15
+ metadata: dict[str, Any]
16
+
17
+ class Edge(BaseModel):
18
+ '''Represents a directed relationship between two nodes in a graph.
19
+
20
+ Attributes:
21
+ id (str): A unique identifier for the edge. Defaults to a random UUID.
22
+ type (str): The type of the edge/relationship. Defaults to "Edge".
23
+ source_id (str): The ID of the source node.
24
+ target_id (str): The ID of the target node.
25
+ metadata (dict[str, Any]): Additional metadata associated with the edge.
26
+ Defaults to an empty dictionary.
27
+ '''
28
+ id: str
29
+ type: str
30
+ source_id: str
31
+ target_id: str
32
+ metadata: dict[str, Any]
33
+
34
+ class Graph(BaseModel):
35
+ """Represents a complete graph structure with nodes and edges.
36
+
37
+ Attributes:
38
+ id (str): A unique identifier for the graph. Defaults to a random UUID.
39
+ nodes (list[Node]): A list of nodes in the graph. Defaults to an empty list.
40
+ edges (list[Edge]): A list of edges in the graph. Defaults to an empty list.
41
+ metadata (dict[str, Any]): Additional metadata about the graph.
42
+ Defaults to an empty dictionary.
43
+ """
44
+ id: str
45
+ nodes: list[Node]
46
+ edges: list[Edge]
47
+ metadata: dict[str, Any]
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: gllm-core-binary
3
- Version: 0.4.13
3
+ Version: 0.4.14
4
4
  Summary: A library containing core components for Gen AI applications.
5
5
  Author-email: Dimitrij Ray <dimitrij.ray@gdplabs.id>, Henry Wicaksono <henry.wicaksono@gdplabs.id>, Resti Febriana <resti.febriana@gdplabs.id>
6
6
  Requires-Python: <3.14,>=3.11
@@ -1,4 +1,4 @@
1
- gllm_core.cp313-win_amd64.pyd,sha256=tM8JArVxpvB8ei438jSFAdgFU2JoQ04PRfw_8yX-wQo,1225728
1
+ gllm_core.cp313-win_amd64.pyd,sha256=PLct0-1USvFIV-DkfNMJEdKYrBwVKD7JtG8zUOLekM4,1254912
2
2
  gllm_core.pyi,sha256=kBd25H_G7jvs1UzU5b1G-3b46959nW49bhvo66PkEOM,1476
3
3
  gllm_core/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  gllm_core/constants.pyi,sha256=HfDsdHcPhUsSniEp_fScuVnSuhpJOM17rQIU2dV2DY8,843
@@ -17,10 +17,11 @@ gllm_core/event/handler/stream_event_handler.pyi,sha256=5faGSFQLBN7XMqd4nIfGkdTB
17
17
  gllm_core/event/hook/__init__.pyi,sha256=gSDHYl0yi00zHHMRvU_Eg8qLqsGHESTvoNE3MXig-g0,149
18
18
  gllm_core/event/hook/event_hook.pyi,sha256=IV5oq-ZZqrLG_hvdibphCpWDYu9e5lYuarQxt8dn76Y,565
19
19
  gllm_core/event/hook/json_stringify_event_hook.pyi,sha256=I-QxbaLc4rEyqhW_f4INN5UxBg_ZofHHN1HQKfPJ7rs,585
20
- gllm_core/schema/__init__.pyi,sha256=X7Gv3xgtl4Ylzsg9iuGgjJPkQey7OdvvIC_X1e5_LAI,310
20
+ gllm_core/schema/__init__.pyi,sha256=nfzZ9cq4pt3SH1Jl88KRdAjUmyVMl_Y4aze9sbWpVSE,414
21
21
  gllm_core/schema/chunk.pyi,sha256=rkglyHC8dlAE8FpamA9NciY13nTJKZLzQg3gxMUalFA,1591
22
22
  gllm_core/schema/component.pyi,sha256=QSk2x76e3ldYIMsvy1icUWj466gNGaSKKOpJj5Gh2hA,9277
23
23
  gllm_core/schema/event.pyi,sha256=Yd74uSWhIO1lx0_p70rYt-LMz4FZHbbbqJP7xhVh_pY,1335
24
+ gllm_core/schema/graph.pyi,sha256=8jOxdj_mSTF-VS4o30J8dl8M0Ypz12bHBzzZF-qyOqU,1710
24
25
  gllm_core/schema/schema_generator.pyi,sha256=ToadC6UKEq35k32wUK1VaMKiICRtENXUYdAQOMlTg3U,1445
25
26
  gllm_core/schema/tool.pyi,sha256=T5TufJZPYUzYoSPZBX0FkqgZ9u03VAIsZdwvY1PS7nw,8848
26
27
  gllm_core/utils/__init__.pyi,sha256=XfPghmKqZ2h_bZzuawxYf6wa9Dp77JSWpd4_fiy2OYQ,1493
@@ -39,7 +40,7 @@ gllm_core/utils/retry.pyi,sha256=KxlPzURzZfCSgKC44v98nR2bqamzHqtbRuXLDEuX29c,161
39
40
  gllm_core/utils/similarity.pyi,sha256=HmSxE5VfPwYZYih_bSIz8QRDbkouO_jij-FX6TSCEdM,439
40
41
  gllm_core/utils/validation.pyi,sha256=NFfyDCYsqHv44Z_5RqpSUEiuETpqH5Eoia5xwC4n1MU,938
41
42
  gllm_core.build/.gitignore,sha256=aEiIwOuxfzdCmLZe4oB1JsBmCUxwG8x-u-HBCV9JT8E,1
42
- gllm_core_binary-0.4.13.dist-info/METADATA,sha256=ESl_-jn3nrVNT-EOnIvPcIkFaMtS5uHCaZxY15qq4QQ,4658
43
- gllm_core_binary-0.4.13.dist-info/WHEEL,sha256=O_u6PJIQ2pIcyIInxVQ9r-yArMuUZbBIaF1kpYVkYxA,96
44
- gllm_core_binary-0.4.13.dist-info/top_level.txt,sha256=UYoTGvK_Yec95-_QUuVCKEr6PUXb5Lc7Dr-x8SeX9uM,10
45
- gllm_core_binary-0.4.13.dist-info/RECORD,,
43
+ gllm_core_binary-0.4.14.dist-info/METADATA,sha256=C1HHidUAuLmuwSlC1zSlBmKQn8JD7yj4v12Lbq80ZyU,4658
44
+ gllm_core_binary-0.4.14.dist-info/WHEEL,sha256=O_u6PJIQ2pIcyIInxVQ9r-yArMuUZbBIaF1kpYVkYxA,96
45
+ gllm_core_binary-0.4.14.dist-info/top_level.txt,sha256=UYoTGvK_Yec95-_QUuVCKEr6PUXb5Lc7Dr-x8SeX9uM,10
46
+ gllm_core_binary-0.4.14.dist-info/RECORD,,