Python SDK for pushing AI-asset inventory snapshots to Trust3 AI governance.
pip install trust3-ai-collector-sdk==0.1.1 Copy PIP instructions
Describe your agents, tools, models, identities, and the relationships between them using a typed generic model. The SDK maps the snapshot to the governance bulk ingest format and POSTs it to the governance API.
pip3 install trust3-ai-collector-sdk Requires Python ≥ 3.9 and a Trust3 governance API key. See the AI Assets Collector documentation for platform setup and credentials.
import os from trust3_ai_collector_sdk import ( Asset, AssetKind, IdentityKind, InventoryClient, InventoryClientConfig, InventorySnapshot, Relationship, RelationshipKind, ) snap = InventorySnapshot( source="my_platform", account="prod.example.com", vendor="Acme Corp", product_name="My Platform", environment="prod", ) snap.assets += [ Asset(kind=AssetKind.AGENT, id="billing_agent", name="Billing Agent", owners=["ops-team@example.com"], provider="openai", model_name="gpt-4o"), Asset(kind=AssetKind.MODEL, id="openai:gpt-4o", name="GPT-4o", provider="openai"), ] snap.relationships += [ Relationship(kind=RelationshipKind.USES_MODEL, from_id="billing_agent", from_kind=AssetKind.AGENT, to_id="openai:gpt-4o", to_kind=AssetKind.MODEL), ] config = InventoryClientConfig( api_server_host=os.environ["TRUST3_API_SERVER_HOST"], api_key=os.environ["TRUST3_API_KEY"], ) with InventoryClient(config) as client: result = client.submit(snap) print(f"pushed {result.assets_pushed} assets, governance HTTP {result.governance_status}") Set TRUST3_API_SERVER_HOST to your Trust3 API hostname (for example https://api.na.trust3ai.com). The SDK itself does not read environment variables — pass the value to InventoryClientConfig. Omit api_server_host entirely to use the North America default; on any other region you must set it and TRUST3_API_KEY to your governance API key.
LicenseRef-Proprietary View SPDX License List
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
The dropdown lists show the available interpreters, ABIs, and platforms.
Enable javascript to be able to filter the list of wheel files.
Copy a direct link to the current filters Copy
Details for the file trust3_ai_collector_sdk-0.1.1-py3-none-any.whl.




