Skip to main content

Interlatent SDK — hosted API client for RL interpretability dashboards.

Project description

Interlatent Python SDK

Official Python client for the Interlatent hosted API.

Browse environments, inspect runs, read latent activations, and view episode data from your RL interpretability dashboards.

Install

pip install interlatent

Quickstart

from interlatent import Interlatent

client = Interlatent(api_key="sk-...")

# Browse
envs = client.environments.list()
runs = client.environments.runs("Ant-v5")

# Inspect
run = client.runs.retrieve("run_abc123")
latents = client.latents.list("run_abc123")
meta = client.episodes.meta("episode_id")
chunk = client.episodes.chunk("episode_id", 0)

# Upload
client.runs.create(run_id="new_run", environment="Ant-v5", layer="policy_net.2")
client.latents.create("new_run", latents=[{"latent_id": 0, "name": "hip torque"}])
client.checkpoints.create("new_run", report={"failure_summary": {}})

Resources

Resource Methods
client.index retrieve()
client.environments list(), runs(env_id)
client.runs retrieve(), create(), update(), upload_urls(), upload_complete()
client.episodes meta(), chunk(), frame()
client.latents list(), retrieve(), create()
client.checkpoints list(), retrieve(), create()
client.auth login()

Project details


Release history Release notifications | RSS feed

This version

0.4.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

interlatent-0.4.0.tar.gz (48.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

interlatent-0.4.0-py3-none-any.whl (57.5 kB view details)

Uploaded Python 3

File details

Details for the file interlatent-0.4.0.tar.gz.

File metadata

  • Download URL: interlatent-0.4.0.tar.gz
  • Upload date:
  • Size: 48.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for interlatent-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ba3785e2c889fd96db89ace04ef307753f55453c5a0415f8a61012e9f7e20a7c
MD5 709388e57fca2b533a5ef5eaf3a64264
BLAKE2b-256 95e0b485803135a06ddad4c7250749a8a3e6eec4f5773b3ea73cbbf32a9da9d7

See more details on using hashes here.

File details

Details for the file interlatent-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: interlatent-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 57.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for interlatent-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39569249a683f54036b80b5ae9d37cd869e6b2c6883ce40e8e875b7759ee7406
MD5 2e15118e12342bb171ba9d133994b371
BLAKE2b-256 1c09cba9c28ecd8b8c7d43cbffa72a23b40fbe2e40619a83324be34faefd2185

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page