veris-ai 0.2.0__py3-none-any.whl → 0.2.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.

Potentially problematic release.


This version of veris-ai might be problematic. Click here for more details.

veris_ai/tool_mock.py CHANGED
@@ -11,7 +11,7 @@ import httpx
11
11
 
12
12
  logger = logging.getLogger(__name__)
13
13
 
14
- T = TypeVar("T") # Generic type for return value
14
+ T = TypeVar("T")
15
15
 
16
16
 
17
17
  class ToolMock:
@@ -25,11 +25,9 @@ class ToolMock:
25
25
  if target_type is Any:
26
26
  return value
27
27
 
28
- # Handle basic types
29
28
  if target_type in (str, int, float, bool):
30
29
  return target_type(value)
31
30
 
32
- # Handle List types
33
31
  origin = get_origin(target_type)
34
32
  if origin is list:
35
33
  if not isinstance(value, list):
@@ -38,7 +36,6 @@ class ToolMock:
38
36
  item_type = get_args(target_type)[0]
39
37
  return [self._convert_to_type(item, item_type) for item in value]
40
38
 
41
- # Handle Dict types
42
39
  if origin is dict:
43
40
  if not isinstance(value, dict):
44
41
  error_msg = f"Expected dict but got {type(value)}"
@@ -49,7 +46,6 @@ class ToolMock:
49
46
  for k, v in value.items()
50
47
  }
51
48
 
52
- # Handle Union types
53
49
  if origin is Union:
54
50
  error_msg = (
55
51
  f"Could not convert {value} to any of the union types {get_args(target_type)}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: veris-ai
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: A Python package for Veris AI tools
5
5
  Project-URL: Homepage, https://github.com/veris-ai/veris-python-sdk
6
6
  Project-URL: Bug Tracker, https://github.com/veris-ai/veris-python-sdk/issues
@@ -0,0 +1,6 @@
1
+ veris_ai/__init__.py,sha256=7mEfVmqxQCn5FZN_1ua3iykCB1NUeJ4RfVXaAzdp4Hw,101
2
+ veris_ai/tool_mock.py,sha256=jXFJLGuOlbis_gkTrZhAxqQdh9DDnS1Z-mWbFpCcvFM,5025
3
+ veris_ai-0.2.1.dist-info/METADATA,sha256=JYEuQcuWr_nBixZlWTsm7WV5hcM3cDSo3pFSED9DsBo,3419
4
+ veris_ai-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ veris_ai-0.2.1.dist-info/licenses/LICENSE,sha256=2g4i20atAgtD5einaKzhQrIB-JrPhyQgD3bC0wkHcCI,1065
6
+ veris_ai-0.2.1.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- veris_ai/__init__.py,sha256=7mEfVmqxQCn5FZN_1ua3iykCB1NUeJ4RfVXaAzdp4Hw,101
2
- veris_ai/tool_mock.py,sha256=7qFM35lz10k5i2X-XQVYcuFNF0bczEnHTr0vtineQrM,5172
3
- veris_ai-0.2.0.dist-info/METADATA,sha256=rD-TyXPbDZfJcQCtNuUUA4KGYD6PAFXQIhB5SL1lyNg,3419
4
- veris_ai-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- veris_ai-0.2.0.dist-info/licenses/LICENSE,sha256=2g4i20atAgtD5einaKzhQrIB-JrPhyQgD3bC0wkHcCI,1065
6
- veris_ai-0.2.0.dist-info/RECORD,,