Python SDK to track events in Trubrics.
Project description
trubrics-sdk
[!IMPORTANT]
We are currently in beta.
To track events:
trubrics = Trubrics(api_key="YOUR_TRUBRICS_API_KEY")
trubrics.track(
event="User prompt",
role="user",
role_id="test_user_id",
properties={"$text": "Hello, Trubrics! Tell me a joke?"},
session_id="test_id",
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
trubrics-beta-0.0.1.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for trubrics_beta-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bee1e46de155d92fbbdcde44d15096cb91c2781f385e1ff811c7b27a654322f1 |
|
MD5 | 964b21d60faa7c32631e2760b8456422 |
|
BLAKE2b-256 | 4e5485cf66785704fc0cf7af31e53bb0c4c2a81251c3cdd8db853a9744c09243 |