versionhq 1.2.4.10__tar.gz → 1.2.4.11__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.4.10 → versionhq-1.2.4.11}/PKG-INFO +1 -1
- versionhq-1.2.4.11/docs/core/llm/index.md +128 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/pyproject.toml +1 -1
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/__init__.py +1 -1
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/agent/model.py +0 -1
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/llm/llm_vars.py +1 -1
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/llm/model.py +10 -1
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/task/model.py +1 -1
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq.egg-info/PKG-INFO +1 -1
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/uv.lock +1 -1
- versionhq-1.2.4.10/docs/core/llm/index.md +0 -66
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/.env.sample +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/.github/workflows/deploy_docs.yml +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/.github/workflows/publish.yml +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/.github/workflows/publish_testpypi.yml +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/.github/workflows/run_tests.yml +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/.github/workflows/security_check.yml +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/.gitignore +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/.pre-commit-config.yaml +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/.python-version +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/LICENSE +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/README.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/SECURITY.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/db/preprocess.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/CNAME +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/_logos/favicon.ico +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/_logos/logo192.png +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/agent/config.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/agent/index.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/agent/task-handling.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/agent-network/config.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/agent-network/form.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/agent-network/index.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/agent-network/ref.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/knowledge.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/memory.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/rag-tool.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/task/evaluation.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/task/index.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/task/reference.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/task/response-field.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/task/task-execution.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/task/task-output.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/task/task-strc-response.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/task-graph/index.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/core/tool.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/index.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/quickstart.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/stylesheets/main.css +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/docs/tags.md +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/mkdocs.yml +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/requirements-dev.txt +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/requirements.txt +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/runtime.txt +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/setup.cfg +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/_prompt/auto_feedback.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/_prompt/constants.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/_prompt/model.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/_utils/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/_utils/convert_img_url.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/_utils/i18n.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/_utils/is_valid_enum.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/_utils/is_valid_url.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/_utils/llm_as_a_judge.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/_utils/logger.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/_utils/process_config.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/_utils/usage_metrics.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/_utils/vars.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/agent/TEMPLATES/Backstory.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/agent/TEMPLATES/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/agent/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/agent/inhouse_agents.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/agent/parser.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/agent/rpm_controller.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/agent_network/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/agent_network/formation.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/agent_network/model.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/cli/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/clients/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/clients/customer/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/clients/customer/model.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/clients/product/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/clients/product/model.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/clients/workflow/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/clients/workflow/model.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/knowledge/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/knowledge/_utils.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/knowledge/embedding.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/knowledge/model.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/knowledge/source.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/knowledge/source_docling.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/knowledge/storage.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/llm/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/memory/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/memory/contextual_memory.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/memory/model.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/storage/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/storage/base.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/storage/ltm_sqlite_storage.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/storage/mem0_storage.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/storage/rag_storage.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/storage/task_output_storage.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/storage/utils.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/task/TEMPLATES/Description.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/task/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/task/evaluation.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/task/formatter.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/task/structured_response.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/task_graph/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/task_graph/colors.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/task_graph/draft.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/task_graph/model.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/tool/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/tool/cache_handler.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/tool/composio/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/tool/composio/model.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/tool/composio/params.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/tool/decorator.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/tool/gpt/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/tool/gpt/_enum.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/tool/gpt/cua.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/tool/gpt/file_search.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/tool/gpt/web_search.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/tool/model.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/tool/rag_tool.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq/tool/tool_handler.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq.egg-info/SOURCES.txt +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq.egg-info/dependency_links.txt +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq.egg-info/requires.txt +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/src/versionhq.egg-info/top_level.txt +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/_prompt/auto_feedback_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/_prompt/prompt_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/_sample/sample.csv +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/_sample/sample.json +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/_sample/sample.mp3 +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/_sample/screenshot.png +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/agent/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/agent/agent_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/agent/doc_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/agent_network/Prompts/Demo_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/agent_network/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/agent_network/agent_network_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/agent_network/doc_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/cli/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/clients/customer_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/clients/product_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/clients/workflow_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/conftest.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/doc_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/formation_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/knowledge/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/knowledge/knowledge_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/knowledge/mock_report_compressed.pdf +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/llm/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/llm/llm_connection_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/llm/llm_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/memory/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/memory/memory_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/task/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/task/doc_eval_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/task/doc_taskoutput_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/task/doc_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/task/eval_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/task/task_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/task_graph/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/task_graph/doc_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/task_graph/task_graph_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/tool/__init__.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/tool/composio_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/tool/doc_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/tool/gpt_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/tool/rag_tool_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/tool/tool_test.py +0 -0
- {versionhq-1.2.4.10 → versionhq-1.2.4.11}/tests/usecase_test.py +0 -0
@@ -0,0 +1,128 @@
|
|
1
|
+
---
|
2
|
+
tags:
|
3
|
+
- Agent Network
|
4
|
+
---
|
5
|
+
|
6
|
+
# LLM
|
7
|
+
|
8
|
+
<class>`class` versionhq.llm.model.<bold>LLM<bold></class>
|
9
|
+
|
10
|
+
A Pydantic class to store LLM objects and its task handling rules.
|
11
|
+
|
12
|
+
You can specify a model and integration platform from the list. Else, we'll use `gemini` or `gpt` via `LiteLLM` by default.
|
13
|
+
|
14
|
+
|
15
|
+
**List of available models**
|
16
|
+
|
17
|
+
```python
|
18
|
+
"openai": [
|
19
|
+
"gpt-4.5-preview-2025-02-27",
|
20
|
+
"gpt-4",
|
21
|
+
"gpt-4o",
|
22
|
+
"gpt-4o-mini",
|
23
|
+
"o1-mini",
|
24
|
+
"o1-preview",
|
25
|
+
],
|
26
|
+
"gemini": [
|
27
|
+
"gemini/gemini-2.0-flash-exp",
|
28
|
+
"gemini/gemini-2.0-flash",
|
29
|
+
"gemini/gemini-2.0-flash-thinking-exp",
|
30
|
+
"gemini/gemini-2.0-flash-lite-preview-02-05",
|
31
|
+
],
|
32
|
+
"anthropic": [
|
33
|
+
"claude-3-7-sonnet-latest",
|
34
|
+
"claude-3-5-haiku-latest",
|
35
|
+
"claude-3-5-sonnet-latest",
|
36
|
+
"claude-3-opus-latest",
|
37
|
+
],
|
38
|
+
"openrouter": [
|
39
|
+
"openrouter/deepseek/deepseek-r1",
|
40
|
+
"openrouter/qwen/qwen-2.5-72b-instruct",
|
41
|
+
"openrouter/google/gemini-2.0-flash-001",
|
42
|
+
"openrouter/mistralai/mistral-large",
|
43
|
+
"openrouter/cohere/command-r-plus",
|
44
|
+
"openrouter/databricks/dbrx-instruct",
|
45
|
+
],
|
46
|
+
"bedrock": [
|
47
|
+
"bedrock/converse/us.meta.llama3-3-70b-instruct-v1:0",
|
48
|
+
"bedrock/us.meta.llama3-2-1b-instruct-v1:0",
|
49
|
+
"bedrock/us.meta.llama3-2-3b-instruct-v1:0",
|
50
|
+
"bedrock/us.meta.llama3-2-11b-instruct-v1:0",
|
51
|
+
"bedrock/us.meta.llama3-2-90b-instruct-v1:0",
|
52
|
+
"bedrock/mistral.mistral-7b-instruct-v0:2",
|
53
|
+
"bedrock/mistral.mixtral-8x7b-instruct-v0:1",
|
54
|
+
"bedrock/mistral.mistral-large-2407-v1:0",
|
55
|
+
"bedrock/amazon.titan-text-lite-v1",
|
56
|
+
"bedrock/amazon.titan-text-express-v1",
|
57
|
+
"bedrock/amazon.titan-text-premier-v1:0",
|
58
|
+
"bedrock/cohere.command-r-plus-v1:0",
|
59
|
+
"bedrock/cohere.command-r-v1:0",
|
60
|
+
"bedrock/cohere.command-text-v14",
|
61
|
+
"bedrock/cohere.command-light-text-v14",
|
62
|
+
],
|
63
|
+
"azure": [
|
64
|
+
"azure/DeepSeek-V3",
|
65
|
+
"azure/DeepSeek-R1",
|
66
|
+
"azure/Llama-3.3-70B-Instruct",
|
67
|
+
"azure/Llama-3.2-11B-Vision-Instruct",
|
68
|
+
"azure/Meta-Llama-3.1-405B-Instruct",
|
69
|
+
"azure/Meta-Llama-3.1-8B-Instruct",
|
70
|
+
"azure/Llama-3.2-1B-Instruct",
|
71
|
+
"azure/Meta-Llama-3.1-70B",
|
72
|
+
"azure/Meta-Llama-3.1-8B",
|
73
|
+
"azure/Llama-3.2-3B-Instruct",
|
74
|
+
"azure/Meta-Llama-3-8B-Instruct",
|
75
|
+
"azure/Meta-Llama-3.1-70B-Instruct",
|
76
|
+
"azure/Llama-3.2-90B-Vision-Instruct",
|
77
|
+
"azure/Llama-3.2-3B",
|
78
|
+
"azure/Llama-3.2-1B",
|
79
|
+
"azure/mistral-large-latest",
|
80
|
+
"azure/mistral-large-2402",
|
81
|
+
"azure/command-r-plus",
|
82
|
+
"azure/o3-mini-2025-01-31",
|
83
|
+
"azure/o3-mini",
|
84
|
+
"azure/o1-mini",
|
85
|
+
"azure/Phi-4-mini-instruct",
|
86
|
+
"azure/Phi-4-multimodal-instruct",
|
87
|
+
"azure/Mistral-Large-2411",
|
88
|
+
"azure/Mistral-small"
|
89
|
+
"azure/mistral-small-2503",
|
90
|
+
"azure/Ministral-3B",
|
91
|
+
"azure/mistralai-Mixtral-8x22B-v0-1"
|
92
|
+
"azure/Cohere-rerank-v3.5",
|
93
|
+
],
|
94
|
+
"azure_ai": [
|
95
|
+
"azure_ai/DeepSeek-V3",
|
96
|
+
"azure_ai/DeepSeek-R1",
|
97
|
+
"azure_ai/Llama-3.3-70B-Instruct",
|
98
|
+
"azure_ai/Llama-3.2-11B-Vision-Instruct",
|
99
|
+
"azure_ai/Meta-Llama-3.1-405B-Instruct",
|
100
|
+
"azure_ai/Meta-Llama-3.1-8B-Instruct",
|
101
|
+
"azure_ai/Llama-3.2-1B-Instruct",
|
102
|
+
"azure_ai/Meta-Llama-3.1-70B",
|
103
|
+
"azure_ai/Meta-Llama-3.1-8B",
|
104
|
+
"azure_ai/Llama-3.2-3B-Instruct",
|
105
|
+
"azure_ai/Meta-Llama-3-8B-Instruct",
|
106
|
+
"azure_ai/Meta-Llama-3.1-70B-Instruct",
|
107
|
+
"azure_ai/Llama-3.2-90B-Vision-Instruct",
|
108
|
+
"azure_ai/Llama-3.2-3B",
|
109
|
+
"azure_ai/Llama-3.2-1B",
|
110
|
+
"azure_ai/mistral-large-latest",
|
111
|
+
"azure_ai/mistral-large-2402",
|
112
|
+
"azure_ai/command-r-plus",
|
113
|
+
"azure_ai/o3-mini-2025-01-31",
|
114
|
+
"azure_ai/o3-mini",
|
115
|
+
"azure_ai/o1-mini",
|
116
|
+
"azure_ai/Phi-4-mini-instruct",
|
117
|
+
"azure_ai/Phi-4-multimodal-instruct",
|
118
|
+
"azure_ai/Mistral-Large-2411",
|
119
|
+
"azure_ai/Mistral-small"
|
120
|
+
"azure_ai/mistral-small-2503",
|
121
|
+
"azure_ai/Ministral-3B",
|
122
|
+
"azure_ai/mistralai-Mixtral-8x22B-v0-1"
|
123
|
+
"azure_ai/Cohere-rerank-v3.5",
|
124
|
+
],
|
125
|
+
"huggingface": [
|
126
|
+
"huggingface/qwen/qwen2.5-VL-72B-Instruct",
|
127
|
+
]
|
128
|
+
```
|
@@ -15,7 +15,7 @@ exclude = ["test*", "__pycache__", "*.egg-info"]
|
|
15
15
|
|
16
16
|
[project]
|
17
17
|
name = "versionhq"
|
18
|
-
version = "1.2.4.
|
18
|
+
version = "1.2.4.11"
|
19
19
|
authors = [{ name = "Kuriko Iwai", email = "kuriko@versi0n.io" }]
|
20
20
|
description = "Autonomous agent networks for task automation with multi-step reasoning."
|
21
21
|
readme = "README.md"
|
@@ -356,7 +356,6 @@ class Agent(BaseModel):
|
|
356
356
|
response_format: Optional[Dict[str, Any]] = None,
|
357
357
|
tools: Optional[List[InstanceOf[Tool]| InstanceOf[ToolSet] | Type[Tool]]] = None,
|
358
358
|
tool_res_as_final: bool = False,
|
359
|
-
# task: Any = None
|
360
359
|
) -> Tuple[str, UsageMetrics]:
|
361
360
|
"""
|
362
361
|
Create formatted prompts using the developer prompt and the agent's backstory, then call the base model.
|
@@ -9,7 +9,7 @@ from typing import Any, Dict, List, Optional
|
|
9
9
|
from typing_extensions import Self
|
10
10
|
|
11
11
|
import litellm
|
12
|
-
from litellm import JSONSchemaValidationError, get_supported_openai_params
|
12
|
+
from litellm import JSONSchemaValidationError, get_supported_openai_params, supports_response_schema
|
13
13
|
from pydantic import BaseModel, Field, PrivateAttr, model_validator, ConfigDict
|
14
14
|
|
15
15
|
from versionhq.llm.llm_vars import LLM_CONTEXT_WINDOW_SIZES, TEXT_MODELS, MODEL_PARAMS, PROVIDERS, ENDPOINTS
|
@@ -239,6 +239,13 @@ class LLM(BaseModel):
|
|
239
239
|
return valid_cred
|
240
240
|
|
241
241
|
|
242
|
+
def _supports_response_schema(self) -> bool:
|
243
|
+
try:
|
244
|
+
return supports_response_schema(model=self.model, custom_llm_provider=self.endpoint_provider)
|
245
|
+
except:
|
246
|
+
return False
|
247
|
+
|
248
|
+
|
242
249
|
def _supports_function_calling(self) -> bool:
|
243
250
|
try:
|
244
251
|
if self.model:
|
@@ -300,6 +307,8 @@ class LLM(BaseModel):
|
|
300
307
|
|
301
308
|
if self.provider == "gemini":
|
302
309
|
self.response_format = { "type": "json_object" } if not tools and self.model != "gemini/gemini-2.0-flash-thinking-exp" else None
|
310
|
+
elif response_format and "json_schema" in response_format:
|
311
|
+
self.response_format = response_format if self._supports_function_calling() else { "type": "json_object" }
|
303
312
|
else:
|
304
313
|
self.response_format = response_format
|
305
314
|
|
@@ -398,7 +398,7 @@ class Task(BaseModel):
|
|
398
398
|
|
399
399
|
|
400
400
|
def _structure_response_format(self, data_type: str = "object", model_provider: str = "gemini") -> Dict[str, Any] | None:
|
401
|
-
"""Structures `response_schema`
|
401
|
+
"""Structures `response_schema` to the LLM response format."""
|
402
402
|
|
403
403
|
from versionhq.task.structured_response import StructuredOutput
|
404
404
|
|
@@ -1,66 +0,0 @@
|
|
1
|
-
---
|
2
|
-
tags:
|
3
|
-
- Agent Network
|
4
|
-
---
|
5
|
-
|
6
|
-
# LLM
|
7
|
-
|
8
|
-
<class>`class` versionhq.llm.model.<bold>LLM<bold></class>
|
9
|
-
|
10
|
-
A Pydantic class to store LLM objects and its task handling rules.
|
11
|
-
|
12
|
-
You can specify a model and integration platform from the list. Else, we'll use `gemini` or `gpt` via `LiteLLM` by default.
|
13
|
-
|
14
|
-
|
15
|
-
**List of available models**
|
16
|
-
|
17
|
-
```python
|
18
|
-
"openai": [
|
19
|
-
"gpt-4.5-preview-2025-02-27",
|
20
|
-
"gpt-4",
|
21
|
-
"gpt-4o",
|
22
|
-
"gpt-4o-mini",
|
23
|
-
"o1-mini",
|
24
|
-
"o1-preview",
|
25
|
-
],
|
26
|
-
"gemini": [
|
27
|
-
"gemini/gemini-2.0-flash-exp",
|
28
|
-
"gemini/gemini-2.0-flash",
|
29
|
-
"gemini/gemini-2.0-flash-thinking-exp",
|
30
|
-
"gemini/gemini-2.0-flash-lite-preview-02-05",
|
31
|
-
],
|
32
|
-
"anthropic": [
|
33
|
-
"claude-3-7-sonnet-latest",
|
34
|
-
"claude-3-5-haiku-latest",
|
35
|
-
"claude-3-5-sonnet-latest",
|
36
|
-
"claude-3-opus-latest",
|
37
|
-
],
|
38
|
-
"openrouter": [
|
39
|
-
"openrouter/deepseek/deepseek-r1",
|
40
|
-
"openrouter/qwen/qwen-2.5-72b-instruct",
|
41
|
-
"openrouter/google/gemini-2.0-flash-001",
|
42
|
-
"openrouter/mistralai/mistral-large",
|
43
|
-
"openrouter/cohere/command-r-plus",
|
44
|
-
"openrouter/databricks/dbrx-instruct",
|
45
|
-
],
|
46
|
-
"bedrock": [
|
47
|
-
"bedrock/converse/us.meta.llama3-3-70b-instruct-v1:0",
|
48
|
-
"bedrock/us.meta.llama3-2-1b-instruct-v1:0",
|
49
|
-
"bedrock/us.meta.llama3-2-3b-instruct-v1:0",
|
50
|
-
"bedrock/us.meta.llama3-2-11b-instruct-v1:0",
|
51
|
-
"bedrock/us.meta.llama3-2-90b-instruct-v1:0",
|
52
|
-
"bedrock/mistral.mistral-7b-instruct-v0:2",
|
53
|
-
"bedrock/mistral.mixtral-8x7b-instruct-v0:1",
|
54
|
-
"bedrock/mistral.mistral-large-2407-v1:0",
|
55
|
-
"bedrock/amazon.titan-text-lite-v1",
|
56
|
-
"bedrock/amazon.titan-text-express-v1",
|
57
|
-
"bedrock/amazon.titan-text-premier-v1:0",
|
58
|
-
"bedrock/cohere.command-r-plus-v1:0",
|
59
|
-
"bedrock/cohere.command-r-v1:0",
|
60
|
-
"bedrock/cohere.command-text-v14",
|
61
|
-
"bedrock/cohere.command-light-text-v14",
|
62
|
-
],
|
63
|
-
"huggingface": [
|
64
|
-
"huggingface/qwen/qwen2.5-VL-72B-Instruct",
|
65
|
-
]
|
66
|
-
```
|
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
|
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
|