Causal event capture for AI agents
Project description
iknowhy
Causal event capture for AI agents. Track every decision, tool call, and outcome — and trace any result back to its root cause.
Install
pip install iknowhy
Quickstart
from iknowhy import CausewayClient
c = CausewayClient(api_key='cwy_your_key')
# Log a causal chain
req = c.log('user_request', payload={'task': 'search docs'}, session_id='s1')
call = c.log('tool_call', payload={'tool': 'web_search'}, cause_ids=[req], session_id='s1')
res = c.log('tool_result', payload={'results': 5}, cause_ids=[call], session_id='s1')
# Trace back from any event
chain = c.chain(res)
for e in chain:
print(e['name'], '->', e['payload'])
API key
Get a free key at https://iknowhy.ai
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
iknowhy-0.1.0.tar.gz
(2.7 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
File details
Details for the file iknowhy-0.1.0.tar.gz.
File metadata
- Download URL: iknowhy-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a37ef79f1e61dae831f70f8b128d789d21618b41756ddb796b41fce449304f8
|
|
| MD5 |
65cd007fc10bb8beed87636b60f21538
|
|
| BLAKE2b-256 |
c243098758a2067ad9db768bc84eb4216ae2e372b69912c62e5e3b6693524a12
|
File details
Details for the file iknowhy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iknowhy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62e8c5033a4a6116536214511a91447375b34c34a060009b2e0a479f7540b755
|
|
| MD5 |
0014dd1375f762523a9e98e6a239ba14
|
|
| BLAKE2b-256 |
25d1b152055f1ae108d1d5716c4354c1a5f886f9bb2303fb53548bf27adf722f
|