veris-ai 0.1.0__py3-none-any.whl → 0.1.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
@@ -77,15 +77,6 @@ class ToolMock:
77
77
  bound_args = sig.bind(*args, **kwargs)
78
78
  bound_args.apply_defaults()
79
79
 
80
- for param_name, param_value in bound_args.arguments.items():
81
- params_info[param_name] = {
82
- "value": param_value,
83
- "type": type_hints.get(param_name, Any).__name__,
84
- }
85
-
86
- # Get function docstring
87
- docstring = inspect.getdoc(func) or ""
88
-
89
80
  ctx = bound_args.arguments.pop('ctx', None)
90
81
  session_id = None
91
82
  if ctx:
@@ -94,6 +85,14 @@ class ToolMock:
94
85
  except AttributeError:
95
86
  logger.warning("Cannot get session_id from context.")
96
87
 
88
+ for param_name, param_value in bound_args.arguments.items():
89
+ params_info[param_name] = {
90
+ "value": param_value,
91
+ "type": type_hints.get(param_name, Any).__name__,
92
+ }
93
+
94
+ # Get function docstring
95
+ docstring = inspect.getdoc(func) or ""
97
96
  # Prepare payload
98
97
  payload = {
99
98
  "session_id": session_id,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: veris-ai
3
- Version: 0.1.0
3
+ Version: 0.1.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=oakvTnzxJK2EURazn_ZHiO2XiwvLT87L7w1h-nTP9EU,5124
3
+ veris_ai-0.1.1.dist-info/METADATA,sha256=E4n72xdpcxN84J7LTk0QBpvGJWU_yoEQo_81s53HeCw,3495
4
+ veris_ai-0.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ veris_ai-0.1.1.dist-info/licenses/LICENSE,sha256=2g4i20atAgtD5einaKzhQrIB-JrPhyQgD3bC0wkHcCI,1065
6
+ veris_ai-0.1.1.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- veris_ai/__init__.py,sha256=7mEfVmqxQCn5FZN_1ua3iykCB1NUeJ4RfVXaAzdp4Hw,101
2
- veris_ai/tool_mock.py,sha256=NTaBr8xkAp3tiB3naWCcm27KWO5JSzcr9BcurfhlCfs,5125
3
- veris_ai-0.1.0.dist-info/METADATA,sha256=DzCmToKvOycKfE3ilpcEEl7mlz0a0w5yITXemoc4DWU,3495
4
- veris_ai-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- veris_ai-0.1.0.dist-info/licenses/LICENSE,sha256=2g4i20atAgtD5einaKzhQrIB-JrPhyQgD3bC0wkHcCI,1065
6
- veris_ai-0.1.0.dist-info/RECORD,,