Python SDK for the Trailing agent compliance audit platform — tamper-proof audit trails for AI agents.
Project description
Trailing Python SDK
Python client for sending trace and oversight events to Trailing.
Install
pip install .
Example
from trailing import SdkContext, SdkEvent, TrailingClient
event = SdkEvent.tool_call(
agent_id="planner-agent",
agent_type="codex",
session_id="session-123",
tool_name="web.search",
target="https://example.com/policy",
parameters={"query": "retention"},
context=SdkContext(policy_refs=["EU-AIA-12"]),
)
with TrailingClient(base_url="http://127.0.0.1:3001") as client:
client.send_event(event)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
trailing-0.1.0.tar.gz
(37.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
trailing-0.1.0-py3-none-any.whl
(35.1 kB
view details)
File details
Details for the file trailing-0.1.0.tar.gz.
File metadata
- Download URL: trailing-0.1.0.tar.gz
- Upload date:
- Size: 37.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7567988b5aaa2a6c14fad2cb4a1b692ed9a3865657ba32ce2a9a2a21f24db003
|
|
| MD5 |
9da4db73213cb37046b94682912c110d
|
|
| BLAKE2b-256 |
3b16e0bbb96e6d7fce2452ebff7177dc25d88c26965a40564cf18f212cd48a4f
|
File details
Details for the file trailing-0.1.0-py3-none-any.whl.
File metadata
- Download URL: trailing-0.1.0-py3-none-any.whl
- Upload date:
- Size: 35.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08f4ef0aed163e7ab703b6c73f5a00da0cf3bcdecff52b45be9a949941bba109
|
|
| MD5 |
818cda380a122a7c425de8df4c523bc6
|
|
| BLAKE2b-256 |
2e8c78bb42567ab4581b75142d4de69c677cae0053425b10d731a2534f7c0e4a
|