versionhq 1.1.10.9__py3-none-any.whl → 1.1.11.1__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 CHANGED
@@ -18,7 +18,7 @@ from versionhq.tool.model import Tool
18
18
  from versionhq.tool.composio_tool import ComposioHandler
19
19
 
20
20
 
21
- __version__ = "1.1.10.9"
21
+ __version__ = "1.1.11.1"
22
22
  __all__ = [
23
23
  "Agent",
24
24
  "Customer",
@@ -7,4 +7,9 @@ List up agents to be called across the project.
7
7
 
8
8
  client_manager = Agent(role="Client Manager", goal="communicate with clients on the task progress", llm=DEFAULT_MODEL_NAME)
9
9
 
10
- task_evaluator = Agent(role="Task Evaluator", goal="score the output according to the given evaluation criteria.", llm=DEFAULT_MODEL_NAME)
10
+ task_evaluator = Agent(
11
+ role="Task Evaluator",
12
+ goal="score the output according to the given evaluation criteria.",
13
+ llm=DEFAULT_MODEL_NAME,
14
+ llm_config=dict(top_p=0.8, top_k=30, max_tokens=5000, temperature=0.9)
15
+ )
@@ -1,4 +1,4 @@
1
- EVALUATE="""Evaluate the accuracy and quality of the following task output. For each criterion defined below, provide a score between 0 (completely inaccurate/unacceptable) and 1 (perfectly accurate/acceptable), and suggest specific improvements to address any shortcomings.
1
+ EVALUATE="""Assess the accuracy and quality of the following task output to the task described below. Score based on the criterion (0-1, 0=worst, 1=best) and suggest improvements. Vary scores; don't assign identical values. Store criteria in the "criteria" field.
2
2
  Task: {task_description}
3
3
  Task Output: {task_output}
4
4
  Evaluation criteria: {eval_criteria}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: versionhq
3
- Version: 1.1.10.9
3
+ Version: 1.1.11.1
4
4
  Summary: LLM orchestration frameworks for model-agnostic AI agents that handle complex outbound workflows
5
5
  Author-email: Kuriko Iwai <kuriko@versi0n.io>
6
6
  License: MIT License
@@ -39,11 +39,11 @@ Classifier: Topic :: Software Development :: Build Tools
39
39
  Requires-Python: >=3.12
40
40
  Description-Content-Type: text/markdown
41
41
  License-File: LICENSE
42
- Requires-Dist: regex
42
+ Requires-Dist: regex==2024.11.6
43
43
  Requires-Dist: requests>=2.32.3
44
- Requires-Dist: pydantic
44
+ Requires-Dist: pydantic>=2.10.6
45
45
  Requires-Dist: werkzeug>=3.1.3
46
- Requires-Dist: typing
46
+ Requires-Dist: typing>=3.10.0.0
47
47
  Requires-Dist: json-repair>=0.31.0
48
48
  Requires-Dist: litellm>=1.55.8
49
49
  Requires-Dist: openai>=1.57.0
@@ -57,17 +57,22 @@ Requires-Dist: langchain>=0.3.14
57
57
  Requires-Dist: langchain-openai>=0.2.14
58
58
  Requires-Dist: composio-langchain>=0.6.12
59
59
  Requires-Dist: chromadb>=0.6.3
60
- Requires-Dist: docling>=2.16.0
61
60
  Requires-Dist: json-repair>=0.35.0
62
61
  Requires-Dist: wheel>=0.45.1
63
- Requires-Dist: pdfplumber>=0.11.5
64
- Requires-Dist: mem0ai>=0.1.48
62
+ Provides-Extra: docling
63
+ Requires-Dist: docling>=2.17.0; extra == "docling"
64
+ Provides-Extra: mem0ai
65
+ Requires-Dist: mem0ai>=0.1.48; extra == "mem0ai"
66
+ Provides-Extra: pdfplumber
67
+ Requires-Dist: pdfplumber>=0.11.5; extra == "pdfplumber"
68
+ Provides-Extra: pandas
69
+ Requires-Dist: pandas>=2.2.3; extra == "pandas"
65
70
 
66
71
  # Overview
67
72
 
68
73
  ![MIT license](https://img.shields.io/badge/License-MIT-green)
69
74
  [![Publisher](https://github.com/versionHQ/multi-agent-system/actions/workflows/publish.yml/badge.svg)](https://github.com/versionHQ/multi-agent-system/actions/workflows/publish.yml)
70
- ![PyPI](https://img.shields.io/badge/PyPI->=v1.1.10-blue)
75
+ ![PyPI](https://img.shields.io/badge/PyPI->=v1.1.11.1-blue)
71
76
  ![python ver](https://img.shields.io/badge/Python->=3.12-purple)
72
77
  ![pyenv ver](https://img.shields.io/badge/pyenv-2.5.0-orange)
73
78
 
@@ -162,7 +167,7 @@ You can specify which formation you want them to generate, or let the agent deci
162
167
 
163
168
  task = Task(
164
169
  description="Amazing task",
165
- pydantic_custom_output=CustomOutput,
170
+ pydantic_output=CustomOutput,
166
171
  callback=dummy_func,
167
172
  callback_kwargs=dict(message="Hi! Here is the result: ")
168
173
  )
@@ -171,14 +176,17 @@ You can specify which formation you want them to generate, or let the agent deci
171
176
  print(res)
172
177
  ```
173
178
 
174
- This will return `TaskOutput` that stores a response in string, JSON dict, and Pydantic model: `CustomOutput` formats with a callback result.
179
+ This will return `TaskOutput` instance that stores a response in plane text, JSON serializable dict, and Pydantic model: `CustomOutput` formats with a callback result, tool output (if given), and evaluation results (if given).
175
180
 
176
181
  ```
177
182
  res == TaskOutput(
178
- raw="{\\"test1\\": \\"random str\\", \\"test2\\": [\\"item1\\", \\"item2\\"]}",
179
- json_dict={"test1": "random str", "test2": ["item1", "item2"]},
180
- pydantic=CustomOutput(test1="random str", test2=["item 1", "item 2"]),
181
- callback_output="Hi! Here is the result: random str, item 1, item 2",
183
+ task_id=UUID('<TASK UUID>')
184
+ raw='{\"test1\":\"random str\", \"test2\":[\"str item 1\", \"str item 2\", \"str item 3\"]}',
185
+ json_dict={'test1': 'random str', 'test2': ['str item 1', 'str item 2', 'str item 3']},
186
+ pydantic=<class '__main__.CustomOutput'>
187
+ tool_output=None,
188
+ callback_output='Hi! Here is the result: random str, str item 1, str item 2, str item 3',
189
+ evaluation=None
182
190
  )
183
191
  ```
184
192
 
@@ -222,7 +230,6 @@ Tasks can be delegated to a team manager, peers in the team, or completely new a
222
230
  ## Technologies Used
223
231
  **Schema, Data Validation**
224
232
  - [Pydantic](https://docs.pydantic.dev/latest/): Data validation and serialization library for Python.
225
- - [Pydantic_core](https://pypi.org/project/pydantic-core/): Core func packages for Pydantic.
226
233
  - [Upstage](https://console.upstage.ai/docs/getting-started/overview): Document processer for ML tasks. (Use `Document Parser API` to extract data from documents)
227
234
  - [Docling](https://ds4sd.github.io/docling/): Document parsing
228
235
 
@@ -288,7 +295,8 @@ src/
288
295
  ```
289
296
  uv venv
290
297
  source .venv/bin/activate
291
- uv pip sync
298
+ uv lock --upgrade
299
+ uv sync --all-extras
292
300
  ```
293
301
 
294
302
  * In case of AssertionError/module mismatch, run Python version control using `.pyenv`
@@ -404,6 +412,7 @@ Common issues and solutions:
404
412
  - API key errors: Ensure all API keys in the `.env` file are correct and up to date. Make sure to add `load_dotenv()` on the top of the python file to apply the latest environment values.
405
413
  - Database connection issues: Check if the Chroma DB is properly initialized and accessible.
406
414
  - Memory errors: If processing large contracts, you may need to increase the available memory for the Python process.
415
+ - Issues related to the Python version: Docling/Pytorch is not ready for Python 3.13 as of Jan 2025. Use Python 3.12.x as default by running `uv venv --python 3.12.8` and `uv python pin 3.12.8`.
407
416
  - Issues related to dependencies: `rm -rf uv.lock`, `uv cache clean`, `uv venv`, and run `uv pip install -r requirements.txt -v`.
408
417
  - Issues related to the AI agents or RAG system: Check the `output.log` file for detailed error messages and stack traces.
409
418
  - Issues related to `Python quit unexpectedly`: Check [this stackoverflow article](https://stackoverflow.com/questions/59888499/macos-catalina-python-quit-unexpectedly-error).
@@ -1,4 +1,4 @@
1
- versionhq/__init__.py,sha256=mdXnMgEQqa41NLNTy26pKTSk_by3Ms7FTDRFdib4i6g,951
1
+ versionhq/__init__.py,sha256=8RQigLjUS2dzNnBTZY2lyx9iWOatzhZdSv3HBCa0mFk,951
2
2
  versionhq/_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  versionhq/_utils/i18n.py,sha256=TwA_PnYfDLA6VqlUDPuybdV9lgi3Frh_ASsb_X8jJo8,1483
4
4
  versionhq/_utils/logger.py,sha256=U-MpeGueA6YS8Ptfy0VnU_ePsZP-8Pvkvi0tZ4s_UMg,1438
@@ -6,7 +6,7 @@ versionhq/_utils/process_config.py,sha256=jbPGXK2Kb4iyCugJ3FwRJuU0wL5Trq2x4xFQz2
6
6
  versionhq/_utils/usage_metrics.py,sha256=hhq1OCW8Z4V93vwW2O2j528EyjOlF8wlTsX5IL-7asA,1106
7
7
  versionhq/_utils/vars.py,sha256=bZ5Dx_bFKlt3hi4-NNGXqdk7B23If_WaTIju2fiTyPQ,57
8
8
  versionhq/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- versionhq/agent/default_agents.py,sha256=NQDgRIpmBCLzkUfWq0EqsrL6F3NYP7GsUPmlR8y3EJw,413
9
+ versionhq/agent/default_agents.py,sha256=Sea3xDswxxMccer1vVDhp1E5etXW3ddf2n20JTMHgqs,503
10
10
  versionhq/agent/model.py,sha256=a8mkzKR71901gnjR71dHdMit-33k9F8cF0FrIr85Fu4,22912
11
11
  versionhq/agent/parser.py,sha256=riG0dkdQCxH7uJ0AbdVdg7WvL0BXhUgJht0VtQvxJBc,4082
12
12
  versionhq/agent/rpm_controller.py,sha256=7AKIEPbWBq_ESOZCaiKVOGjfSPHd2qwg6-wbBlhqC0g,2367
@@ -46,7 +46,7 @@ versionhq/task/formatter.py,sha256=N8Kmk9vtrMtBdgJ8J7RmlKNMdZWSmV8O1bDexmCWgU0,6
46
46
  versionhq/task/log_handler.py,sha256=KJRrcNZgFSKhlNzvtYFnvtp6xukaF1s7ifX9u4zWrN8,1683
47
47
  versionhq/task/model.py,sha256=Uxs5LaGb1O9CdnhWh36sSbgdKPfDYDCi2V4BNdvAMPc,30027
48
48
  versionhq/task/structured_response.py,sha256=h5GbbkCNJ27f4AbHcriGctQLFSp4qlmq2REDEfSd8xU,4786
49
- versionhq/task/TEMPLATES/Description.py,sha256=LL-ya19O-NnBmc2HFbJ1oCUtumtAElUMJ3nSCNmU6eM,368
49
+ versionhq/task/TEMPLATES/Description.py,sha256=bChflSWGGQo9JpnO6QX6Ng9pnONiTf-zwQ3ke4xQgSQ,357
50
50
  versionhq/team/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
51
  versionhq/team/model.py,sha256=NzcRXWwP0adWL9vsnsmI-A5dOcE3199FGmGgemUB2VA,20043
52
52
  versionhq/team/team_planner.py,sha256=UyIpw7GoRQXlgLNaojoi-G8F1sYaf5hTpLcTvWjRvlA,3596
@@ -57,8 +57,8 @@ versionhq/tool/composio_tool_vars.py,sha256=FvBuEXsOQUYnN7RTFxT20kAkiEYkxWKkiVtg
57
57
  versionhq/tool/decorator.py,sha256=C4ZM7Xi2gwtEMaSeRo-geo_g_MAkY77WkSLkAuY0AyI,1205
58
58
  versionhq/tool/model.py,sha256=7ccEnje_8LuxLVeog6pL38nToArXQXk4KY7A9hfprDo,12239
59
59
  versionhq/tool/tool_handler.py,sha256=2m41K8qo5bGCCbwMFferEjT-XZ-mE9F0mDUOBkgivOI,1416
60
- versionhq-1.1.10.9.dist-info/LICENSE,sha256=7CCXuMrAjPVsUvZrsBq9DsxI2rLDUSYXR_qj4yO_ZII,1077
61
- versionhq-1.1.10.9.dist-info/METADATA,sha256=YtCtivOpUDKpkd4EKMjWDbYxfeo23OqXwD9paJEpREA,17751
62
- versionhq-1.1.10.9.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
63
- versionhq-1.1.10.9.dist-info/top_level.txt,sha256=DClQwxDWqIUGeRJkA8vBlgeNsYZs4_nJWMonzFt5Wj0,10
64
- versionhq-1.1.10.9.dist-info/RECORD,,
60
+ versionhq-1.1.11.1.dist-info/LICENSE,sha256=7CCXuMrAjPVsUvZrsBq9DsxI2rLDUSYXR_qj4yO_ZII,1077
61
+ versionhq-1.1.11.1.dist-info/METADATA,sha256=Cw6-Lu9N6fKUEzvHu_JOacYnYB-mPsIWRxdLVtNa7zg,18304
62
+ versionhq-1.1.11.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
63
+ versionhq-1.1.11.1.dist-info/top_level.txt,sha256=DClQwxDWqIUGeRJkA8vBlgeNsYZs4_nJWMonzFt5Wj0,10
64
+ versionhq-1.1.11.1.dist-info/RECORD,,