vision-agent 1.1.5__tar.gz → 1.1.7__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.
Files changed (48) hide show
  1. vision_agent-1.1.7/.gitignore +99 -0
  2. {vision_agent-1.1.5 → vision_agent-1.1.7}/PKG-INFO +35 -41
  3. {vision_agent-1.1.5 → vision_agent-1.1.7}/README.md +2 -1
  4. vision_agent-1.1.7/pyproject.toml +119 -0
  5. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/utils/tools.py +1 -1
  6. vision_agent-1.1.5/pyproject.toml +0 -108
  7. {vision_agent-1.1.5 → vision_agent-1.1.7}/LICENSE +0 -0
  8. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/.sim_tools/df.csv +0 -0
  9. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/.sim_tools/embs.npy +0 -0
  10. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/__init__.py +0 -0
  11. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/agent/README.md +0 -0
  12. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/agent/__init__.py +0 -0
  13. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/agent/agent.py +0 -0
  14. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/agent/vision_agent_coder_prompts_v2.py +0 -0
  15. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/agent/vision_agent_coder_v2.py +0 -0
  16. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/agent/vision_agent_planner_prompts_v2.py +0 -0
  17. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/agent/vision_agent_planner_v2.py +0 -0
  18. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/agent/vision_agent_prompts_v2.py +0 -0
  19. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/agent/vision_agent_v2.py +0 -0
  20. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/clients/__init__.py +0 -0
  21. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/clients/http.py +0 -0
  22. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/configs/__init__.py +0 -0
  23. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/configs/anthropic_config.py +0 -0
  24. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/configs/config.py +0 -0
  25. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/configs/openai_config.py +0 -0
  26. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/fonts/__init__.py +0 -0
  27. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/fonts/default_font_ch_en.ttf +0 -0
  28. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/lmm/__init__.py +0 -0
  29. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/lmm/lmm.py +0 -0
  30. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/models/__init__.py +0 -0
  31. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/models/agent_types.py +0 -0
  32. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/models/lmm_types.py +0 -0
  33. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/models/tools_types.py +0 -0
  34. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/sim/__init__.py +0 -0
  35. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/sim/sim.py +0 -0
  36. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/tools/__init__.py +0 -0
  37. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/tools/meta_tools.py +0 -0
  38. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/tools/planner_tools.py +0 -0
  39. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/tools/prompts.py +0 -0
  40. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/tools/tools.py +0 -0
  41. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/utils/__init__.py +0 -0
  42. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/utils/agent.py +0 -0
  43. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/utils/exceptions.py +0 -0
  44. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/utils/execute.py +0 -0
  45. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/utils/image_utils.py +0 -0
  46. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/utils/tools_doc.py +0 -0
  47. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/utils/video.py +0 -0
  48. {vision_agent-1.1.5 → vision_agent-1.1.7}/vision_agent/utils/video_tracking.py +0 -0
@@ -0,0 +1,99 @@
1
+ # Prerequisites
2
+ *.d
3
+
4
+ # Object files
5
+ *.o
6
+ *.ko
7
+ *.obj
8
+ *.elf
9
+
10
+ # Env files
11
+ .env
12
+
13
+ # Precompiled Headers
14
+ *.gch
15
+ *.pch
16
+
17
+ # Libraries
18
+ *.lib
19
+ *.a
20
+ *.la
21
+ *.lo
22
+
23
+ # Shared objects (inc. Windows DLLs)
24
+ *.dll
25
+ *.so
26
+ *.so.*
27
+ *.dylib
28
+
29
+ # Executables
30
+ *.exe
31
+ *.out
32
+ *.app
33
+ *.i*86
34
+ *.x86_64
35
+ *.hex
36
+
37
+ # Debug files
38
+ *.dSYM/
39
+ *.su
40
+
41
+ # Mac files
42
+ .DS_Store
43
+ .DS_STORE
44
+
45
+ # Old HG stuff
46
+ .hg
47
+ .hgignore
48
+ .hgtags
49
+
50
+ .git
51
+ __pycache__
52
+ .ipynb_checkpoints
53
+ */__pycache__
54
+ */.ipynb_checkpoints
55
+ .local
56
+ .jupyter
57
+ .ipython
58
+ */.terraform
59
+ terraform.*
60
+ .terraform.*
61
+ shinobi-dvr/*
62
+ .vscode/
63
+
64
+ # mypy
65
+ .mypy_cache/*
66
+
67
+ # Distribution / packaging
68
+ .Python
69
+ build/
70
+ develop-eggs/
71
+ dist/
72
+ downloads/
73
+ eggs/
74
+ .eggs/
75
+ lib/
76
+ lib64/
77
+ parts/
78
+ sdist/
79
+ var/
80
+ wheels/
81
+ pip-wheel-metadata/
82
+ share/python-wheels/
83
+ *.egg-info/
84
+ .installed.cfg
85
+ *.egg
86
+ MANIFEST
87
+
88
+ # Output from various tools
89
+ examples/output
90
+ tests/output
91
+ docs-build
92
+ site
93
+
94
+ # Local or WIP files
95
+ local/
96
+
97
+ vision-agent-benchmark/
98
+ vision_agent/tools/suggestion.py
99
+ vision_agent/agent/visual_design_patterns.py
@@ -1,46 +1,40 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: vision-agent
3
- Version: 1.1.5
3
+ Version: 1.1.7
4
4
  Summary: Toolset for Vision Agent
5
- Author: Landing AI
6
- Author-email: dev@landing.ai
7
- Requires-Python: >=3.9,<4.0
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: Programming Language :: Python :: 3.9
10
- Classifier: Programming Language :: Python :: 3.10
11
- Classifier: Programming Language :: Python :: 3.11
12
- Classifier: Programming Language :: Python :: 3.12
13
- Classifier: Programming Language :: Python :: 3.13
14
- Requires-Dist: anthropic (>=0.31.0,<0.32.0)
15
- Requires-Dist: av (>=11.0.0,<12.0.0)
16
- Requires-Dist: dotenv (>=0.9.9,<0.10.0)
17
- Requires-Dist: flake8 (>=7.0.0,<8.0.0)
18
- Requires-Dist: ipykernel (>=6.29.4,<7.0.0)
19
- Requires-Dist: libcst (>=1.5.0,<2.0.0)
20
- Requires-Dist: matplotlib (>=3.9.2,<4.0.0)
21
- Requires-Dist: nbclient (>=0.10.0,<0.11.0)
22
- Requires-Dist: nbformat (>=5.10.4,<6.0.0)
23
- Requires-Dist: numpy (>=1.21.0,<2.0.0)
24
- Requires-Dist: openai (==1.*)
25
- Requires-Dist: opencv-python (==4.*)
26
- Requires-Dist: opentelemetry-api (>=1.29.0,<2.0.0)
27
- Requires-Dist: pandas (==2.*)
28
- Requires-Dist: pillow (==10.*)
29
- Requires-Dist: pillow-heif (>=0.16.0,<0.17.0)
30
- Requires-Dist: pydantic (>=2.0.0,<3.0.0)
31
- Requires-Dist: pymupdf (>=1.23.0,<2.0.0)
32
- Requires-Dist: pytube (==15.0.0)
33
- Requires-Dist: requests (==2.*)
34
- Requires-Dist: rich (>=13.7.1,<14.0.0)
35
- Requires-Dist: scikit-learn (>=1.5.2,<2.0.0)
36
- Requires-Dist: scipy (==1.13.*)
37
- Requires-Dist: tabulate (>=0.9.0,<0.10.0)
38
- Requires-Dist: tenacity (>=8.3.0,<9.0.0)
39
- Requires-Dist: tqdm (>=4.64.0,<5.0.0)
40
- Requires-Dist: typing_extensions (==4.*)
41
5
  Project-URL: Homepage, https://landing.ai
42
- Project-URL: documentation, https://github.com/landing-ai/vision-agent
43
6
  Project-URL: repository, https://github.com/landing-ai/vision-agent
7
+ Project-URL: documentation, https://github.com/landing-ai/vision-agent
8
+ Author-email: Landing AI <dev@landing.ai>
9
+ License-File: LICENSE
10
+ Requires-Python: <4.0,>=3.9
11
+ Requires-Dist: anthropic<0.32,>=0.31.0
12
+ Requires-Dist: av<12,>=11.0.0
13
+ Requires-Dist: dotenv<0.10,>=0.9.9
14
+ Requires-Dist: flake8<8,>=7.0.0
15
+ Requires-Dist: ipykernel<7,>=6.29.4
16
+ Requires-Dist: libcst<2,>=1.5.0
17
+ Requires-Dist: matplotlib<4,>=3.9.2
18
+ Requires-Dist: nbclient<0.11,>=0.10.0
19
+ Requires-Dist: nbformat<6,>=5.10.4
20
+ Requires-Dist: numpy<2.0.0,>=1.21.0
21
+ Requires-Dist: openai==1.*
22
+ Requires-Dist: opencv-python==4.*
23
+ Requires-Dist: opentelemetry-api<2,>=1.29.0
24
+ Requires-Dist: pandas==2.*
25
+ Requires-Dist: pillow-heif<0.17,>=0.16.0
26
+ Requires-Dist: pillow==10.*
27
+ Requires-Dist: pydantic<3,>=2.0.0
28
+ Requires-Dist: pymupdf<2,>=1.23.0
29
+ Requires-Dist: pytube==15.0.0
30
+ Requires-Dist: requests==2.*
31
+ Requires-Dist: rich<14,>=13.7.1
32
+ Requires-Dist: scikit-learn<2,>=1.5.2
33
+ Requires-Dist: scipy==1.13.*
34
+ Requires-Dist: tabulate<0.10,>=0.9.0
35
+ Requires-Dist: tenacity<9,>=8.3.0
36
+ Requires-Dist: tqdm<5.0.0,>=4.64.0
37
+ Requires-Dist: typing-extensions==4.*
44
38
  Description-Content-Type: text/markdown
45
39
 
46
40
  <div align="center">
@@ -76,7 +70,7 @@ Prefer full control? Install the library and run VisionAgent locally. Just want
76
70
  ## Steps to Set Up the Library
77
71
 
78
72
  ### Get Your VisionAgent API Key
79
- The most important step is to [signup](https://va.landing.ai/agent) and obtain your [API key](https://va.landing.ai/account/api-key).
73
+ The most important step is to [signup](https://va.landing.ai/agent) and obtain your [API key](https://va.landing.ai/settings/api-key).
80
74
 
81
75
  ### Other Prerequisites
82
76
  - Python version 3.9 or higher
@@ -107,6 +101,7 @@ Anthropic and Gemini each have their own rate limits and paid tiers. Refer to th
107
101
 
108
102
 
109
103
  ## Installation
104
+
110
105
  ```bash
111
106
  pip install vision-agent
112
107
  ```
@@ -269,4 +264,3 @@ with this code:
269
264
  - [VisionAgent Library Docs](https://landing-ai.github.io/vision-agent/): Learn how to use this library.
270
265
  - [VisionAgent Web App Docs](https://support.landing.ai/docs/agentic-ai): Learn how to use the web-based version of VisionAgent.
271
266
  - [Video Tutorials](https://www.youtube.com/playlist?list=PLrKGAzovU85fvo22OnVtPl90mxBygIf79): Watch the latest video tutorials to see how VisionAgent is used in a variety of use cases.
272
-
@@ -31,7 +31,7 @@ Prefer full control? Install the library and run VisionAgent locally. Just want
31
31
  ## Steps to Set Up the Library
32
32
 
33
33
  ### Get Your VisionAgent API Key
34
- The most important step is to [signup](https://va.landing.ai/agent) and obtain your [API key](https://va.landing.ai/account/api-key).
34
+ The most important step is to [signup](https://va.landing.ai/agent) and obtain your [API key](https://va.landing.ai/settings/api-key).
35
35
 
36
36
  ### Other Prerequisites
37
37
  - Python version 3.9 or higher
@@ -62,6 +62,7 @@ Anthropic and Gemini each have their own rate limits and paid tiers. Refer to th
62
62
 
63
63
 
64
64
  ## Installation
65
+
65
66
  ```bash
66
67
  pip install vision-agent
67
68
  ```
@@ -0,0 +1,119 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "vision-agent"
7
+ version = "1.1.7"
8
+ description = "Toolset for Vision Agent"
9
+ authors = [{ name = "Landing AI", email = "dev@landing.ai" }]
10
+ requires-python = ">=3.9,<4.0"
11
+ readme = "README.md"
12
+ dependencies = [
13
+ "numpy>=1.21.0,<2.0.0",
14
+ "pillow==10.*",
15
+ "requests==2.*",
16
+ "tqdm>=4.64.0,<5.0.0",
17
+ "pandas==2.*",
18
+ "openai==1.*",
19
+ "flake8>=7.0.0,<8",
20
+ "typing_extensions==4.*",
21
+ "opencv-python==4.*",
22
+ "tabulate>=0.9.0,<0.10",
23
+ "scipy==1.13.*",
24
+ "nbclient>=0.10.0,<0.11",
25
+ "nbformat>=5.10.4,<6",
26
+ "rich>=13.7.1,<14",
27
+ "ipykernel>=6.29.4,<7",
28
+ "tenacity>=8.3.0,<9",
29
+ "pillow-heif>=0.16.0,<0.17",
30
+ "pytube==15.0.0",
31
+ "anthropic>=0.31.0,<0.32",
32
+ "pydantic>=2.0.0,<3",
33
+ "av>=11.0.0,<12",
34
+ "libcst>=1.5.0,<2",
35
+ "matplotlib>=3.9.2,<4",
36
+ "scikit-learn>=1.5.2,<2",
37
+ "opentelemetry-api>=1.29.0,<2",
38
+ "dotenv>=0.9.9,<0.10",
39
+ "pymupdf>=1.23.0,<2",
40
+ ]
41
+
42
+ [project.urls]
43
+ Homepage = "https://landing.ai"
44
+ repository = "https://github.com/landing-ai/vision-agent"
45
+ documentation = "https://github.com/landing-ai/vision-agent"
46
+
47
+ [dependency-groups]
48
+ dev = [
49
+ "autoflake==1.*",
50
+ "pytest==7.*",
51
+ "black>=23,<25",
52
+ "isort==5.*",
53
+ "responses>=0.23.1,<0.24",
54
+ "mypy<1.8.0",
55
+ "types-requests>=2.31.0.0,<3",
56
+ "types-pillow>=9.5.0.4,<10",
57
+ "data-science-types>=0.2.23,<0.3",
58
+ "types-tqdm>=4.65.0.1,<5",
59
+ "setuptools>=68.0.0,<69",
60
+ "griffe>=0.45.3,<0.46",
61
+ "mkdocs>=1.5.3,<2",
62
+ "mkdocstrings[python]>=0.23.0,<0.24",
63
+ "mkdocs-material>=9.4.2,<10",
64
+ "types-tabulate>=0.9.0.20240106,<0.10",
65
+ "scikit-image<0.23.1",
66
+ "pre-commit>=3.8.0,<4",
67
+ ]
68
+
69
+ [tool.hatch.build.targets.sdist]
70
+ include = [
71
+ "vision_agent",
72
+ "vision_agent/.sim_tools/*",
73
+ ]
74
+
75
+ [tool.hatch.build.targets.wheel]
76
+ include = [
77
+ "vision_agent",
78
+ "vision_agent/.sim_tools/*",
79
+ ]
80
+
81
+ [tool.pytest.ini_options]
82
+ log_cli = true
83
+ log_cli_level = "INFO"
84
+ log_cli_format = "%(asctime)s [%(levelname)s] %(message)s (%(filename)s:%(lineno)s)"
85
+ log_cli_date_format = "%Y-%m-%d %H:%M:%S"
86
+
87
+ [tool.black]
88
+ exclude = '.vscode|.eggs|venv'
89
+ line-length = 88 # suggested by black official site
90
+
91
+ [tool.isort]
92
+ line_length = 88
93
+ profile = "black"
94
+
95
+ [tool.mypy]
96
+ plugins = "pydantic.mypy"
97
+
98
+ exclude = "tests"
99
+ show_error_context = true
100
+ pretty = true
101
+ check_untyped_defs = true
102
+ disallow_untyped_defs = true
103
+ no_implicit_optional = true
104
+ strict_optional = true
105
+ strict_equality = true
106
+ extra_checks = true
107
+ warn_redundant_casts = true
108
+ warn_unused_configs = true
109
+ warn_unused_ignores = true
110
+ warn_return_any = true
111
+ show_error_codes = true
112
+
113
+ [[tool.mypy.overrides]]
114
+ ignore_missing_imports = true
115
+ module = [
116
+ "cv2.*",
117
+ "openai.*",
118
+ "sentence_transformers.*",
119
+ ]
@@ -28,7 +28,7 @@ def get_vision_agent_api_key() -> str:
28
28
  return vision_agent_api_key
29
29
  else:
30
30
  raise ValueError(
31
- "VISION_AGENT_API_KEY not found in environment variables, required for tool usage. You can get a free key from https://va.landing.ai/account/api-key"
31
+ "VISION_AGENT_API_KEY not found in environment variables, required for tool usage. You can get a free key from https://va.landing.ai/settings/api-key"
32
32
  )
33
33
 
34
34
 
@@ -1,108 +0,0 @@
1
- [build-system]
2
- requires = ["poetry-core"]
3
- build-backend = "poetry.core.masonry.api"
4
-
5
- [tool.poetry]
6
- name = "vision-agent"
7
- version = "1.1.5"
8
- description = "Toolset for Vision Agent"
9
- authors = ["Landing AI <dev@landing.ai>"]
10
- readme = "README.md"
11
- packages = [{include = "vision_agent"}]
12
- include = [{path = "vision_agent/.sim_tools/*"}]
13
-
14
- [tool.poetry.urls]
15
- "Homepage" = "https://landing.ai"
16
- "repository" = "https://github.com/landing-ai/vision-agent"
17
- "documentation" = "https://github.com/landing-ai/vision-agent"
18
-
19
- [tool.poetry.dependencies] # main dependency group
20
- python = ">=3.9,<4.0"
21
-
22
- numpy = ">=1.21.0,<2.0.0"
23
- pillow = "10.*"
24
- requests = "2.*"
25
- tqdm = ">=4.64.0,<5.0.0"
26
- pandas = "2.*"
27
- openai = "1.*"
28
- flake8 = "^7.0.0"
29
- typing_extensions = "4.*"
30
- opencv-python = "4.*"
31
- tabulate = "^0.9.0"
32
- scipy = "1.13.*"
33
- nbclient = "^0.10.0"
34
- nbformat = "^5.10.4"
35
- rich = "^13.7.1"
36
- ipykernel = "^6.29.4"
37
- tenacity = "^8.3.0"
38
- pillow-heif = "^0.16.0"
39
- pytube = "15.0.0"
40
- anthropic = "^0.31.0"
41
- pydantic = "^2.0.0"
42
- av = "^11.0.0"
43
- libcst = "^1.5.0"
44
- matplotlib = "^3.9.2"
45
- scikit-learn = "^1.5.2"
46
- opentelemetry-api = "^1.29.0"
47
- dotenv = "^0.9.9"
48
- pymupdf = "^1.23.0"
49
-
50
- [tool.poetry.group.dev.dependencies]
51
- autoflake = "1.*"
52
- pytest = "7.*"
53
- black = ">=23,<25"
54
- isort = "5.*"
55
- responses = "^0.23.1"
56
- mypy = "<1.8.0"
57
- types-requests = "^2.31.0.0"
58
- types-pillow = "^9.5.0.4"
59
- data-science-types = "^0.2.23"
60
- types-tqdm = "^4.65.0.1"
61
- setuptools = "^68.0.0"
62
- griffe = "^0.45.3"
63
- mkdocs = "^1.5.3"
64
- mkdocstrings = {extras = ["python"], version = "^0.23.0"}
65
- mkdocs-material = "^9.4.2"
66
- types-tabulate = "^0.9.0.20240106"
67
- scikit-image = "<0.23.1"
68
- pre-commit = "^3.8.0"
69
-
70
- [tool.pytest.ini_options]
71
- log_cli = true
72
- log_cli_level = "INFO"
73
- log_cli_format = "%(asctime)s [%(levelname)s] %(message)s (%(filename)s:%(lineno)s)"
74
- log_cli_date_format = "%Y-%m-%d %H:%M:%S"
75
-
76
- [tool.black]
77
- exclude = '.vscode|.eggs|venv'
78
- line-length = 88 # suggested by black official site
79
-
80
- [tool.isort]
81
- line_length = 88
82
- profile = "black"
83
-
84
- [tool.mypy]
85
- plugins = "pydantic.mypy"
86
-
87
- exclude = "tests"
88
- show_error_context = true
89
- pretty = true
90
- check_untyped_defs = true
91
- disallow_untyped_defs = true
92
- no_implicit_optional = true
93
- strict_optional = true
94
- strict_equality = true
95
- extra_checks = true
96
- warn_redundant_casts = true
97
- warn_unused_configs = true
98
- warn_unused_ignores = true
99
- warn_return_any = true
100
- show_error_codes = true
101
-
102
- [[tool.mypy.overrides]]
103
- ignore_missing_imports = true
104
- module = [
105
- "cv2.*",
106
- "openai.*",
107
- "sentence_transformers.*",
108
- ]
File without changes