vantio-agent-sdk 1.0.0__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.
vantio/__init__.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import uuid
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
class VantioSession:
|
|
6
|
+
"""
|
|
7
|
+
Vantio Sovereign Execution Context Manager.
|
|
8
|
+
Anchors the AI agent's execution to a mathematically verifiable Trace ID.
|
|
9
|
+
"""
|
|
10
|
+
def __init__(self, trace_id: Optional[str] = None):
|
|
11
|
+
self.trace_id = trace_id or str(uuid.uuid4())
|
|
12
|
+
self.env_keys = ['VANTIO_TRACE_ID', 'VANTIO_PHANTOM_MODE']
|
|
13
|
+
|
|
14
|
+
def __enter__(self) -> str:
|
|
15
|
+
os.environ['VANTIO_TRACE_ID'] = self.trace_id
|
|
16
|
+
os.environ['VANTIO_PHANTOM_MODE'] = 'true'
|
|
17
|
+
return self.trace_id
|
|
18
|
+
|
|
19
|
+
def __exit__(self, exc_type, exc_val, exc_tb):
|
|
20
|
+
for key in self.env_keys:
|
|
21
|
+
os.environ.pop(key, None)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: vantio-agent-sdk
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Vantio Agent SDK for Python
|
|
5
|
+
License: ISC
|
|
6
|
+
Requires-Python: >=3.8
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
|
|
9
|
+
# vantio-agent-sdk
|
|
10
|
+
|
|
11
|
+
Python SDK for the Vantio Agent platform.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
from vantio import VantioSession
|
|
17
|
+
|
|
18
|
+
with VantioSession() as trace_id:
|
|
19
|
+
# agent logic here
|
|
20
|
+
print(f"Running with trace: {trace_id}")
|
|
21
|
+
```
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
vantio/__init__.py,sha256=FVpGoyYBcdH6lj-k3YvhlW5csORHoJUN7c9OQpL543I,682
|
|
2
|
+
vantio_agent_sdk-1.0.0.dist-info/METADATA,sha256=g3xo_6sBodjm40abL0wddYpUvsyptiwBK5gZTAIGU6I,397
|
|
3
|
+
vantio_agent_sdk-1.0.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
4
|
+
vantio_agent_sdk-1.0.0.dist-info/top_level.txt,sha256=SbLu6_s6SvAdZkl1NWWb5Abbn85ZudFrbep5ioLQcRE,7
|
|
5
|
+
vantio_agent_sdk-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
vantio
|