veris-ai 1.11.0__py3-none-any.whl → 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.
Potentially problematic release.
This version of veris-ai might be problematic. Click here for more details.
- veris_ai/README.md +3 -3
- veris_ai/api_client.py +3 -3
- {veris_ai-1.11.0.dist-info → veris_ai-1.11.1.dist-info}/METADATA +2 -2
- {veris_ai-1.11.0.dist-info → veris_ai-1.11.1.dist-info}/RECORD +6 -6
- {veris_ai-1.11.0.dist-info → veris_ai-1.11.1.dist-info}/WHEEL +0 -0
- {veris_ai-1.11.0.dist-info → veris_ai-1.11.1.dist-info}/licenses/LICENSE +0 -0
veris_ai/README.md
CHANGED
|
@@ -28,15 +28,15 @@ This module contains the core implementation of the Veris AI Python SDK. Each co
|
|
|
28
28
|
### Mock Flow
|
|
29
29
|
1. **Decoration**: `@veris.mock()` captures function metadata
|
|
30
30
|
2. **Session Check**: Presence of session ID determines behavior
|
|
31
|
-
3. **API Call**: POST to VERIS API endpoint `/
|
|
31
|
+
3. **API Call**: POST to VERIS API endpoint `/v3/tool_mock` (auto-configured)
|
|
32
32
|
4. **Type Conversion**: Response converted using `extract_json_schema()`
|
|
33
33
|
|
|
34
34
|
**Implementation**: [`tool_mock.py:200-250`](tool_mock.py)
|
|
35
35
|
|
|
36
36
|
### Spy Flow
|
|
37
|
-
1. **Pre-execution Logging**: Call details sent to
|
|
37
|
+
1. **Pre-execution Logging**: Call details sent to `v3/log_tool_call?session_id={session_id}`
|
|
38
38
|
2. **Function Execution**: Original function runs normally
|
|
39
|
-
3. **Post-execution Logging**: Response sent to
|
|
39
|
+
3. **Post-execution Logging**: Response sent to `v3/log_tool_response?session_id={session_id}`
|
|
40
40
|
|
|
41
41
|
**Implementation**: [`tool_mock.py:250-300`](tool_mock.py)
|
|
42
42
|
|
veris_ai/api_client.py
CHANGED
|
@@ -63,15 +63,15 @@ class SimulatorAPIClient:
|
|
|
63
63
|
@property
|
|
64
64
|
def tool_mock_endpoint(self) -> str:
|
|
65
65
|
"""Get the tool mock endpoint URL."""
|
|
66
|
-
return urljoin(self._get_base_url(), "
|
|
66
|
+
return urljoin(self._get_base_url(), "v3/tool_mock")
|
|
67
67
|
|
|
68
68
|
def get_log_tool_call_endpoint(self, session_id: str) -> str:
|
|
69
69
|
"""Get the log tool call endpoint URL."""
|
|
70
|
-
return urljoin(self._get_base_url(), f"
|
|
70
|
+
return urljoin(self._get_base_url(), f"v3/log_tool_call?session_id={session_id}")
|
|
71
71
|
|
|
72
72
|
def get_log_tool_response_endpoint(self, session_id: str) -> str:
|
|
73
73
|
"""Get the log tool response endpoint URL."""
|
|
74
|
-
return urljoin(self._get_base_url(), f"
|
|
74
|
+
return urljoin(self._get_base_url(), f"v3/log_tool_response?session_id={session_id}")
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
# Global singleton instance
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: veris-ai
|
|
3
|
-
Version: 1.11.
|
|
3
|
+
Version: 1.11.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
|
|
@@ -135,7 +135,7 @@ What this enables:
|
|
|
135
135
|
|
|
136
136
|
End-to-end propagation with the simulator:
|
|
137
137
|
- The simulator injects W3C headers when connecting to your FastAPI MCP endpoints
|
|
138
|
-
- The SDK injects W3C headers on `/
|
|
138
|
+
- The SDK injects W3C headers on `/v3/tool_mock` and logging requests back to the simulator
|
|
139
139
|
- Result: customer agent spans and tool mocks appear under the same distributed trace
|
|
140
140
|
|
|
141
141
|
## Function Mocking
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
veris_ai/README.md,sha256=
|
|
1
|
+
veris_ai/README.md,sha256=Mxg9fyNt6hFkQaFBYZq85Kw9akw4cN2uu6j_mXZtNCs,3871
|
|
2
2
|
veris_ai/__init__.py,sha256=enl_gEa6BQAjWvzCtsn_hFVJVVlJZ_dMsLL--E5W3nU,1907
|
|
3
3
|
veris_ai/agents_wrapper.py,sha256=N-YZ0qvIEJ8rlFZAzVKg6eWKa7I_qIt-khlg_zL-qY8,11931
|
|
4
|
-
veris_ai/api_client.py,sha256=
|
|
4
|
+
veris_ai/api_client.py,sha256=BQ2Fn5pO7uaWmWNcLOoZO8o-D39OPRmclPROwJvXBUc,3199
|
|
5
5
|
veris_ai/models.py,sha256=xKeheSJQle2tBeJG1DsGJzMDwv24p5jECjX6RAa39n4,495
|
|
6
6
|
veris_ai/observability.py,sha256=eSIXmk6fpOAoWM-sDbsvzyUASh1ZwU6tRIPduy09RxY,4206
|
|
7
7
|
veris_ai/tool_mock.py,sha256=--t0ZhjplJXzBt1F--XPE57ZyMBjB9SOjO2OzuoWkbk,12861
|
|
@@ -10,7 +10,7 @@ veris_ai/jaeger_interface/README.md,sha256=kd9rKcE5xf3EyNaiHu0tjn-0oES9sfaK6Ih-O
|
|
|
10
10
|
veris_ai/jaeger_interface/__init__.py,sha256=KD7NSiMYRG_2uF6dOLKkGG5lNQe4K9ptEwucwMT4_aw,1128
|
|
11
11
|
veris_ai/jaeger_interface/client.py,sha256=yJrh86wRR0Dk3Gq12DId99WogcMIVbL0QQFqVSevvlE,8772
|
|
12
12
|
veris_ai/jaeger_interface/models.py,sha256=e64VV6IvOEFuzRUgvDAMQFyOZMRb56I-PUPZLBZ3rX0,1864
|
|
13
|
-
veris_ai-1.11.
|
|
14
|
-
veris_ai-1.11.
|
|
15
|
-
veris_ai-1.11.
|
|
16
|
-
veris_ai-1.11.
|
|
13
|
+
veris_ai-1.11.1.dist-info/METADATA,sha256=H5_LRx0-4gOLrEj7iVMyhC1XJDHzbVwed-Dubugv8bE,15259
|
|
14
|
+
veris_ai-1.11.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
15
|
+
veris_ai-1.11.1.dist-info/licenses/LICENSE,sha256=2g4i20atAgtD5einaKzhQrIB-JrPhyQgD3bC0wkHcCI,1065
|
|
16
|
+
veris_ai-1.11.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|