versionhq 1.2.0.2__py3-none-any.whl → 1.2.0.4__py3-none-any.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.
- versionhq/__init__.py +1 -1
- versionhq/knowledge/source.py +1 -1
- versionhq/network/model.py +5 -28
- {versionhq-1.2.0.2.dist-info → versionhq-1.2.0.4.dist-info}/METADATA +3 -5
- {versionhq-1.2.0.2.dist-info → versionhq-1.2.0.4.dist-info}/RECORD +8 -8
- {versionhq-1.2.0.2.dist-info → versionhq-1.2.0.4.dist-info}/LICENSE +0 -0
- {versionhq-1.2.0.2.dist-info → versionhq-1.2.0.4.dist-info}/WHEEL +0 -0
- {versionhq-1.2.0.2.dist-info → versionhq-1.2.0.4.dist-info}/top_level.txt +0 -0
versionhq/__init__.py
CHANGED
versionhq/knowledge/source.py
CHANGED
@@ -265,7 +265,7 @@ class PDFKnowledgeSource(BaseFileKnowledgeSource):
|
|
265
265
|
import os
|
266
266
|
os.system("uv add pdfplumber --optional pdfplumber")
|
267
267
|
except:
|
268
|
-
raise ImportError("pdfplumber is not installed. Please install it with: uv add pdfplumber")
|
268
|
+
raise ImportError("pdfplumber is not installed. Please install it with: uv add pdfplumber --optional pdfplumber")
|
269
269
|
|
270
270
|
|
271
271
|
def add(self) -> None:
|
versionhq/network/model.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
import enum
|
2
2
|
import uuid
|
3
|
+
import networkx as nx
|
4
|
+
import matplotlib.pyplot as plt
|
3
5
|
from abc import ABC
|
4
6
|
from typing import List, Any, Optional, Callable, Dict, Type, Tuple
|
5
7
|
|
@@ -10,31 +12,6 @@ from versionhq.task.model import Task, TaskOutput
|
|
10
12
|
from versionhq.agent.model import Agent
|
11
13
|
from versionhq._utils.logger import Logger
|
12
14
|
|
13
|
-
try:
|
14
|
-
import networkx as nx
|
15
|
-
except ImportError:
|
16
|
-
try:
|
17
|
-
import os
|
18
|
-
os.system("uv add networkx --optional networkx")
|
19
|
-
import networkx as nx
|
20
|
-
except:
|
21
|
-
raise ImportError("networkx is not installed. Please install it with: uv add networkx --optional networkx")
|
22
|
-
|
23
|
-
|
24
|
-
try:
|
25
|
-
import matplotlib.pyplot as plt
|
26
|
-
except ImportError:
|
27
|
-
try:
|
28
|
-
import os
|
29
|
-
os.system("uv add matplotlib --optional matplotlib")
|
30
|
-
import matplotlib.pyplot as plt
|
31
|
-
except:
|
32
|
-
raise ImportError("matplotlib is not installed. Please install it with: uv add matplotlib --optional matplotlib")
|
33
|
-
|
34
|
-
import networkx as nx
|
35
|
-
import matplotlib.pyplot as plt
|
36
|
-
|
37
|
-
|
38
15
|
|
39
16
|
class TaskStatus(enum.Enum):
|
40
17
|
"""
|
@@ -228,6 +205,7 @@ class Graph(ABC, BaseModel):
|
|
228
205
|
An abstract class to store G using NetworkX library.
|
229
206
|
"""
|
230
207
|
|
208
|
+
|
231
209
|
_logger: Logger = PrivateAttr(default_factory=lambda: Logger(verbose=True))
|
232
210
|
directed: bool = Field(default=False, description="Whether the graph is directed")
|
233
211
|
graph: Type[nx.Graph] = Field(default=None)
|
@@ -235,8 +213,8 @@ class Graph(ABC, BaseModel):
|
|
235
213
|
edges: Dict[str, InstanceOf[Edge]] = Field(default_factory=dict)
|
236
214
|
|
237
215
|
def __init__(self, directed: bool = False, **kwargs):
|
238
|
-
|
239
|
-
|
216
|
+
super().__init__(directed=directed, **kwargs)
|
217
|
+
self.graph = nx.DiGraph() if self.directed else nx.Graph()
|
240
218
|
|
241
219
|
def _return_node_object(self, node_identifier) -> Node | None:
|
242
220
|
return [v for k, v in self.nodes.items() if k == node_identifier][0] if [v for k, v in self.nodes.items() if k == node_identifier] else None
|
@@ -448,7 +426,6 @@ class TaskGraph(Graph):
|
|
448
426
|
abs_file_path = abs_file_path if abs_file_path else f"{project_root}/uploads"
|
449
427
|
|
450
428
|
os.makedirs(abs_file_path, exist_ok=True)
|
451
|
-
|
452
429
|
plt.savefig(f"{abs_file_path}/{str(self.id)}.png")
|
453
430
|
|
454
431
|
except Exception as e:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: versionhq
|
3
|
-
Version: 1.2.0.
|
3
|
+
Version: 1.2.0.4
|
4
4
|
Summary: An agentic orchestration framework for building agent networks that handle task automation.
|
5
5
|
Author-email: Kuriko Iwai <kuriko@versi0n.io>
|
6
6
|
License: MIT License
|
@@ -64,6 +64,8 @@ Requires-Dist: chromadb>=0.6.3
|
|
64
64
|
Requires-Dist: wheel>=0.45.1
|
65
65
|
Requires-Dist: envoy>=0.0.3
|
66
66
|
Requires-Dist: composio-core==0.7.0
|
67
|
+
Requires-Dist: networkx>=3.4.2
|
68
|
+
Requires-Dist: matplotlib>=3.10.0
|
67
69
|
Provides-Extra: docling
|
68
70
|
Requires-Dist: docling>=2.17.0; extra == "docling"
|
69
71
|
Provides-Extra: mem0ai
|
@@ -76,10 +78,6 @@ Provides-Extra: numpy
|
|
76
78
|
Requires-Dist: numpy>=1.26.4; extra == "numpy"
|
77
79
|
Provides-Extra: pygraphviz
|
78
80
|
Requires-Dist: pygraphviz>=1.14; extra == "pygraphviz"
|
79
|
-
Provides-Extra: networkx
|
80
|
-
Requires-Dist: networkx>=3.4.2; extra == "networkx"
|
81
|
-
Provides-Extra: matplotlib
|
82
|
-
Requires-Dist: matplotlib>=3.10.0; extra == "matplotlib"
|
83
81
|
|
84
82
|
# Overview
|
85
83
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
versionhq/__init__.py,sha256=
|
1
|
+
versionhq/__init__.py,sha256=9ZKO5IoKeFB9BaNAMZKDRLKf1xGAA_VSpgnMm1xc4GE,2783
|
2
2
|
versionhq/_utils/__init__.py,sha256=dzoZr4cBlh-2QZuPzTdehPUCe9lP1dmRtauD7qTjUaA,158
|
3
3
|
versionhq/_utils/i18n.py,sha256=TwA_PnYfDLA6VqlUDPuybdV9lgi3Frh_ASsb_X8jJo8,1483
|
4
4
|
versionhq/_utils/logger.py,sha256=j9SlQPIefdVUlwpGfJY83E2BUt1ejWgZ2M2I8aMyQ3c,1579
|
@@ -24,7 +24,7 @@ versionhq/knowledge/__init__.py,sha256=qW7IgssTA4_bFFV9ziOcYRfGjlq1c8bkb-HnfWknp
|
|
24
24
|
versionhq/knowledge/_utils.py,sha256=YWRF8U533cfZes_gZqUvdj-K24MD2ri1R0gjc_aPYyc,402
|
25
25
|
versionhq/knowledge/embedding.py,sha256=KfHc__1THxb5jrg1EMrF-v944RDuIr2hE0l-MtM3Bp0,6826
|
26
26
|
versionhq/knowledge/model.py,sha256=w29mrJv1kiznCh4P4yJMUQxIuyRw1Sk0XYtBXzCxaG4,1786
|
27
|
-
versionhq/knowledge/source.py,sha256=
|
27
|
+
versionhq/knowledge/source.py,sha256=HxlwK7E5qWMknJeswnFCCdTIOB01hV4JrEiMGkp7j1E,13631
|
28
28
|
versionhq/knowledge/source_docling.py,sha256=hhHn3rS4KVsFKEPWcfllM8VxSL86PckZdAHDZNQNOq8,5411
|
29
29
|
versionhq/knowledge/storage.py,sha256=7oxCg3W9mFjYH1YmuH9kFtTbNxquzYFjuUjd_TlsB9E,8170
|
30
30
|
versionhq/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -34,7 +34,7 @@ versionhq/memory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
34
34
|
versionhq/memory/contextual_memory.py,sha256=tCsOOAUnfrOL7YiakqGoi3uShzzS870TmGnlGd3z_A4,3556
|
35
35
|
versionhq/memory/model.py,sha256=4wow2O3UuMZ0AbC2NyxddGZac3-_GjNZbK9wsA015NA,8145
|
36
36
|
versionhq/network/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
|
-
versionhq/network/model.py,sha256=
|
37
|
+
versionhq/network/model.py,sha256=fKKMTviIS2uOwLYT_bGN_2-4R0gmnPB8x-dd05k5jFE,19700
|
38
38
|
versionhq/storage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
39
39
|
versionhq/storage/base.py,sha256=p-Jas0fXQan_qotnRD6seQxrT2lj-uw9-SmHQhdppcs,355
|
40
40
|
versionhq/storage/ltm_sqlite_storage.py,sha256=wdUiuwHfJocdk0UGqyrdU4S5Nae1rgsoRNu3LWmGFcI,3951
|
@@ -60,8 +60,8 @@ versionhq/tool/composio_tool_vars.py,sha256=FvBuEXsOQUYnN7RTFxT20kAkiEYkxWKkiVtg
|
|
60
60
|
versionhq/tool/decorator.py,sha256=C4ZM7Xi2gwtEMaSeRo-geo_g_MAkY77WkSLkAuY0AyI,1205
|
61
61
|
versionhq/tool/model.py,sha256=PO4zNWBZcJhYVur381YL1dy6zqurio2jWjtbxOxZMGI,12194
|
62
62
|
versionhq/tool/tool_handler.py,sha256=2m41K8qo5bGCCbwMFferEjT-XZ-mE9F0mDUOBkgivOI,1416
|
63
|
-
versionhq-1.2.0.
|
64
|
-
versionhq-1.2.0.
|
65
|
-
versionhq-1.2.0.
|
66
|
-
versionhq-1.2.0.
|
67
|
-
versionhq-1.2.0.
|
63
|
+
versionhq-1.2.0.4.dist-info/LICENSE,sha256=cRoGGdM73IiDs6nDWKqPlgSv7aR4n-qBXYnJlCMHCeE,1082
|
64
|
+
versionhq-1.2.0.4.dist-info/METADATA,sha256=d0YGN_ulUD-0CLAOAGfyae2FLmY32CxT2RQEQzgjK20,21366
|
65
|
+
versionhq-1.2.0.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
66
|
+
versionhq-1.2.0.4.dist-info/top_level.txt,sha256=DClQwxDWqIUGeRJkA8vBlgeNsYZs4_nJWMonzFt5Wj0,10
|
67
|
+
versionhq-1.2.0.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|