ReskPoints
Know exactly what your AI agents did, how confident, and what happened.
🔗 resk.fr/projects/reskpoints — part of RESK Security
📚 Guide: Tool Permissions for AI Agents: Least Privilege in Practice
Installation
pip install reskpoints # core (console, file, webhook)
pip install reskpoints[datadog,prometheus,opentelemetry] # + platforms
Usage rapide (30 seconds)
from reskpoints import AgentLogger
logger = AgentLogger()
logger.log("agent-1", "tool_call", 0.95,
{"tool": "search", "query": "RAG papers"},
"3 results")
# → every field enriched: timestamp, host, env, UUID
Async? Same API. Decorating a function? One line:
from reskpoints import log_action
@log_action(agent_id="coder")
def execute_python(code: str) -> str: ...
await logger.alog("agent-1", "search", 0.95, {"q": "papers"}, "3 results")
Pourquoi ReskPoints ?
Tracing platforms (Langfuse, Logfire, OpenTelemetry backends) are built for request tracing — spans, latencies, token counts. But agent decisions are a different primitive: which action, with what probability/confidence, which parameters, what result. ReskPoints models exactly that, with built-in secret masking, per-action sampling, and delivery reliability — and still ships to the observability stack you already run.
| ReskPoints | Langfuse | Logfire / OTel backends | Python logging |
|
|---|---|---|---|---|
| First-class model | Agent action (probability, params, result) | LLM traces | Generic spans | Free-form text |
| One-line decorator | ✅ @log_action |
⚠️ SDK callbacks | ⚠️ manual spans | ⚠️ |
| Sensitive-field auto-masking | ✅ built-in | ⚠️ manual | ❌ | ❌ |
| Per-action probabilistic sampling | ✅ (heartbeat: 1%, tool_*: 100%) |
❌ | ⚠️ global | ❌ |
| Delivery reliability | ✅ retry + circuit breaker + buffering | SaaS-bound | Varies | ❌ |
| Destinations | ✅ 7 (Console, JSONL, Webhook, Datadog, Prometheus, OTel, Mock) — simultaneously | Own SaaS | Own backends | Handlers |
| Replay from file (audit/debug) | ✅ reskpoints replay |
❌ | ❌ | ❌ |
Documentation
- Config reference:
reskpoints.yamlbelow - CLI:
reskpoints log | test | status | tail | replay
Quick tour
logger.log(
agent_id="agent-1",
action="tool_call",
probability=0.95,
params={"tool": "search", "query": "RAG papers 2025"},
result=["paper1", "paper2"],
success=True,
duration_ms=1240.5,
session_id="sess_abc123",
correlation_id="req_xyz789",
)
logger.health()
# → {"console": {"status": "ok"}, "datadog": {"status": "degraded", ...}}
CLI
reskpoints log --agent-id agent-1 --action tool_call --params '{"tool":"search"}'
reskpoints test # test all platforms
reskpoints status # platform health
reskpoints tail # live log stream
reskpoints replay logs.jsonl
Config (reskpoints.yaml)
agent_logger:
sampling:
default_rate: 1.0
rules:
- { action: "heartbeat", rate: 0.01 }
- { action: "tool_*", rate: 1.0 }
masking:
enabled: true
sensitive_fields: [api_key, token, secret, password]
platforms:
console: { enabled: true, format: "human" }
webhook: { enabled: false, url: "${WEBHOOK_URL}", signing_secret: "${WEBHOOK_SECRET}" }
datadog: { enabled: false, api_key: "${DD_API_KEY}", site: "datadoghq.eu" }
${ENV_VAR:default} interpolation is supported throughout.
Platforms
| Platform | Extra | Use case |
|---|---|---|
| Console | built-in | Dev/debug |
| File (JSONL) | built-in | Local storage, replay |
| Webhook (HMAC-signed) | built-in | Custom endpoints, Zapier, N8n |
| Datadog | [datadog] |
Logs + Metrics |
| Prometheus | [prometheus] |
Pushgateway metrics |
| OpenTelemetry | [opentelemetry] |
OTLP spans → any backend |
| Mock | built-in | Testing |
Every platform is wrapped with exponential-backoff retry, a circuit breaker (5 failures → 30s recovery) and buffering (1000 entries) — one platform going down never kills your logs.
Development
git clone https://github.com/Resk-Security/ReskPoints.git
cd ReskPoints
pip install -e ".[all,dev]"
pytest tests/ -v # 26 tests · ruff clean · mypy passes
Ecosystem
Part of the Resk-Security family: Resk-LLM (detection), resk-logits (generation-time defense), resksecure (bitmask firewall).
License
Apache 2.0 — see LICENSE.
Metadata
Release files for reskpoints 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reskpoints-0.1.3.tar.gz | 18.1 kB | Without provenance | Details for reskpoints-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reskpoints-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for reskpoints-0.1.3-py3-none-any.whl |
Total release size: 42.3 kB
Release files / reskpoints-0.1.3.tar.gz
| Download URL | reskpoints-0.1.3.tar.gz |
|---|---|
| Size | 18.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d72031d815f05aa0937ffbdfb39765215fbfb7d2df212ba2f532bbf4df67c851
|
|
BLAKE2b-256 checksum How to use checksums |
e41c0fde0b7a3d33745ef89c3ea82c05963ccb6d16b12884afd5188abedcdf9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / reskpoints-0.1.3-py3-none-any.whl
| Download URL | reskpoints-0.1.3-py3-none-any.whl |
|---|---|
| Size | 24.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76efbb8cdf78b126746b9ff25ade269e6cafecfa68917a1c6e2a5b02359a33ae
|
|
BLAKE2b-256 checksum How to use checksums |
9d34a2030dbd970abacd75afa814c8ba6d782731fae20cae78a892970be64c63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for reskpoints 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.