Skip to main content

Trust infrastructure for scientific AI agents — trace, cite, score.

Project description

replicase

Trust infrastructure for scientific AI agents.

import replicase

replicase.init(api_key="rpl_test_...")

@replicase.trace(name="my_research_agent")
async def search(query: str) -> str:
    # ... your agent code ...
    replicase.cite(doi="10.1038/...", title="...", claim="X causes Y")
    return answer

Every traced call is captured, citations are NLI-scored against their source, and results show up in the Replicase dashboard. See the parent repo for full docs.

Install

pip install replicase

Configuration

Env var Default Required Notes
REPLICASE_API_KEY None Yes Your project key
REPLICASE_ENDPOINT https://api.replicase.bio No Override for local dev

Privacy

@replicase.trace captures function inputs and outputs and ships them to the API. Built-in regex redaction (default-on) scrubs common API-key prefixes, JWTs, bearer tokens, emails, US-SSN-shaped, and 13–19 digit card-shaped substrings. This is best-effort, not a security boundary — base64-encoded secrets, custom-format tokens, and internal hostnames will not be caught. Scrub at the source for regulated data.

Disable redaction with replicase.init(redact=False) (not recommended in prod) or supply a callable: replicase.init(redact=my_redactor).

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

replicase-0.0.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

replicase-0.0.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file replicase-0.0.0.tar.gz.

File metadata

  • Download URL: replicase-0.0.0.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for replicase-0.0.0.tar.gz
Algorithm Hash digest
SHA256 db566634a9b871c899cd550682543c14702fa5cf0fd4c614cfa0d3e0c877ca4e
MD5 19056869db59aabcf75858594c1b1946
BLAKE2b-256 cf6a7d36ba906d2e1d18b21a2398d6fae2836b4ad25bbbd4da67d024e83dae31

See more details on using hashes here.

File details

Details for the file replicase-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: replicase-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for replicase-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0569e8d75a4a1a943586f9c7bcc40e5014315449480c8ac7c1f77a0eb38c5013
MD5 4d325f77cec57370785a03cf26b8c653
BLAKE2b-256 ab3492e44b56a68fbcccab4bd1ff86a4c559032e08ce31a30839f08e38270df8

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