versionhq 1.2.1.18__tar.gz → 1.2.1.19__tar.gz
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-1.2.1.18 → versionhq-1.2.1.19}/PKG-INFO +1 -1
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/pyproject.toml +1 -1
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/__init__.py +1 -1
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/agent/model.py +1 -1
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/agent_network/formation.py +4 -1
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/knowledge/model.py +1 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/storage/rag_storage.py +7 -7
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq.egg-info/PKG-INFO +1 -1
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/agent/agent_test.py +4 -2
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/uv.lock +1 -1
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/.env.sample +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/.github/workflows/deploy_docs.yml +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/.github/workflows/publish.yml +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/.github/workflows/publish_testpypi.yml +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/.github/workflows/run_tests.yml +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/.github/workflows/security_check.yml +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/.gitignore +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/.pre-commit-config.yaml +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/.python-version +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/LICENSE +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/README.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/SECURITY.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/db/preprocess.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/CNAME +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/_logos/favicon.ico +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/_logos/logo192.png +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/core/agent/config.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/core/agent/index.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/core/agent/ref.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/core/agent/task-handling.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/core/agent-network/index.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/core/llm/index.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/core/task/evaluation.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/core/task/index.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/core/task/response-field.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/core/task/task-output.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/core/task-graph/index.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/core/tool.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/index.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/quickstart.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/stylesheets/main.css +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/docs/tags.md +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/mkdocs.yml +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/requirements-dev.txt +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/requirements.txt +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/runtime.txt +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/setup.cfg +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/_utils/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/_utils/i18n.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/_utils/logger.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/_utils/process_config.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/_utils/usage_metrics.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/_utils/vars.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/agent/TEMPLATES/Backstory.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/agent/TEMPLATES/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/agent/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/agent/inhouse_agents.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/agent/parser.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/agent/rpm_controller.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/agent_network/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/agent_network/model.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/cli/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/clients/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/clients/customer/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/clients/customer/model.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/clients/product/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/clients/product/model.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/clients/workflow/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/clients/workflow/model.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/knowledge/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/knowledge/_utils.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/knowledge/embedding.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/knowledge/source.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/knowledge/source_docling.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/knowledge/storage.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/llm/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/llm/llm_vars.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/llm/model.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/memory/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/memory/contextual_memory.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/memory/model.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/storage/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/storage/base.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/storage/ltm_sqlite_storage.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/storage/mem0_storage.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/storage/task_output_storage.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/storage/utils.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/task/TEMPLATES/Description.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/task/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/task/evaluate.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/task/formatter.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/task/log_handler.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/task/model.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/task/structured_response.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/task_graph/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/task_graph/colors.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/task_graph/draft.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/task_graph/model.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/tool/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/tool/cache_handler.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/tool/composio_tool.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/tool/composio_tool_vars.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/tool/decorator.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/tool/model.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq/tool/tool_handler.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq.egg-info/SOURCES.txt +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq.egg-info/dependency_links.txt +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq.egg-info/requires.txt +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/src/versionhq.egg-info/top_level.txt +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/agent/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/agent/doc_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/agent_network/Prompts/Demo_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/agent_network/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/agent_network/agent_network_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/cli/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/clients/customer_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/clients/product_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/clients/workflow_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/conftest.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/doc_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/formation_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/knowledge/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/knowledge/knowledge_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/knowledge/mock_report_compressed.pdf +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/llm/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/llm/llm_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/memory/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/memory/memory_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/task/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/task/doc_taskoutput_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/task/doc_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/task/llm_connection_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/task/task_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/task_graph/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/task_graph/doc_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/task_graph/task_graph_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/tool/__init__.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/tool/composio_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/tool/doc_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/tool/tool_test.py +0 -0
- {versionhq-1.2.1.18 → versionhq-1.2.1.19}/tests/usecase_test.py +0 -0
@@ -15,7 +15,7 @@ exclude = ["test*", "__pycache__", "*.egg-info"]
|
|
15
15
|
|
16
16
|
[project]
|
17
17
|
name = "versionhq"
|
18
|
-
version = "1.2.1.
|
18
|
+
version = "1.2.1.19"
|
19
19
|
authors = [{ name = "Kuriko Iwai", email = "kuriko@versi0n.io" }]
|
20
20
|
description = "An agentic orchestration framework for building agent networks that handle task automation."
|
21
21
|
readme = "README.md"
|
@@ -222,7 +222,7 @@ class Agent(BaseModel):
|
|
222
222
|
|
223
223
|
if self.knowledge_sources:
|
224
224
|
try:
|
225
|
-
collection_name = f"{self.role.replace(' ', '_')}"
|
225
|
+
collection_name = f"{self.role.replace(' ', '_')}-{str(self.id)}"
|
226
226
|
knowledge_sources = []
|
227
227
|
docling_fp, txt_fp, json_fp, excel_fp, csv_fp, pdf_fp = [], [], [], [], [], []
|
228
228
|
str_cont = ""
|
@@ -9,6 +9,9 @@ from versionhq.agent_network.model import AgentNetwork, Member, Formation
|
|
9
9
|
from versionhq.agent.inhouse_agents import vhq_formation_planner
|
10
10
|
from versionhq._utils import Logger
|
11
11
|
|
12
|
+
import chromadb
|
13
|
+
chromadb.api.client.SharedSystemClient.clear_system_cache()
|
14
|
+
|
12
15
|
|
13
16
|
def form_agent_network(
|
14
17
|
task: str,
|
@@ -85,7 +88,7 @@ def form_agent_network(
|
|
85
88
|
members = []
|
86
89
|
leader = str(res.pydantic.leader_agent) if res.pydantic else str(res.json_dict["leader_agent"])
|
87
90
|
|
88
|
-
created_agents = [Agent(role=item, goal=item) for item in res.pydantic.agent_roles]
|
91
|
+
created_agents = [Agent(role=str(item), goal=str(item)) for item in res.pydantic.agent_roles]
|
89
92
|
created_tasks = []
|
90
93
|
|
91
94
|
if res.pydantic:
|
@@ -9,6 +9,7 @@ class Knowledge(BaseModel):
|
|
9
9
|
"""
|
10
10
|
Knowlede class for collection of sources and setup for the vector store to query relevant context.
|
11
11
|
"""
|
12
|
+
|
12
13
|
collection_name: Optional[str] = None
|
13
14
|
sources: List[BaseKnowledgeSource] = Field(default_factory=list)
|
14
15
|
storage: KnowledgeStorage = Field(default_factory=KnowledgeStorage)
|
@@ -129,16 +129,16 @@ class RAGStorage(BaseRAGStorage):
|
|
129
129
|
from chromadb.config import Settings
|
130
130
|
|
131
131
|
self._set_embedder_config()
|
132
|
-
chroma_client = chromadb.PersistentClient(
|
133
|
-
path=self.path if self.path else self.storage_file_name,
|
134
|
-
settings=Settings(allow_reset=self.allow_reset),
|
135
|
-
)
|
136
|
-
self.app = chroma_client
|
137
|
-
|
138
132
|
try:
|
133
|
+
chroma_client = chromadb.PersistentClient(
|
134
|
+
path=self.path if self.path else self.storage_file_name,
|
135
|
+
settings=Settings(allow_reset=self.allow_reset),
|
136
|
+
)
|
137
|
+
self.app = chroma_client
|
139
138
|
self.collection = self.app.get_collection(name=self.type, embedding_function=self.embedder_config)
|
140
139
|
except Exception:
|
141
|
-
|
140
|
+
if self.app:
|
141
|
+
self.collection = self.app.create_collection(name=self.type, embedding_function=self.embedder_config)
|
142
142
|
|
143
143
|
|
144
144
|
def _sanitize_role(self, role: str) -> str:
|
@@ -244,10 +244,12 @@ def test_agent_with_knowledge_sources():
|
|
244
244
|
|
245
245
|
agent = Agent(role="Information Agent", goal="Provide information based on knowledge sources", knowledge_sources=knowledge_sources)
|
246
246
|
|
247
|
-
assert
|
247
|
+
assert f"{agent.role.replace(' ', '_')}" in agent._knowledge.collection_name
|
248
248
|
assert [isinstance(item, StringKnowledgeSource | DoclingSource) for item in agent.knowledge_sources]
|
249
249
|
assert agent._knowledge.embedder_config == agent.embedder_config
|
250
|
-
assert agent._knowledge.storage and agent._knowledge.storage.embedding_function
|
250
|
+
assert agent._knowledge.storage and agent._knowledge.storage.embedding_function
|
251
|
+
assert agent._knowledge.storage.app is not None
|
252
|
+
assert agent._knowledge.storage.collection_name is not None
|
251
253
|
|
252
254
|
task = Task(description="Answer the following question: What is Kuriko's favorite color?")
|
253
255
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|