Skip to main content

CoSens Python RSI SDK

Install with pip install --upgrade cosens-sdk.

Cloud mode is the default. Set COSENS_API_KEY; CoSens learns with its own models and you need no model of your own.

from cosens.rsi import RSIClient

rsi = RSIClient()  # cloud
run = rsi.execution_create(
    evidence={"context_path": "context.txt", "files": [{"path": "sales.csv", "role": "input"}]},
    idempotency_key="delivery-42",
)
print(rsi.execution_get(run["id"])["status"])

Only the files named in evidence are uploaded. For local mode, pass a data directory and your own tool-calling model; the key comes from RSI_MODEL_API_KEY:

rsi = RSIClient(
    data_dir="./.rsi-python",
    config={"model": "your-model", "base_url": "http://127.0.0.1:8000/v1", "auto_start": True},
)

Both modes have the same methods and results. See the atomic API and Hook lifecycle and the Python Hook example.

Metadata

Release files for cosens-sdk 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cosens-sdk 0.9.0
File Size Uploaded Provenance Actions
cosens_sdk-0.9.0.tar.gz 55.6 kB With provenance Details for cosens_sdk-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cosens-sdk 0.9.0
File Interpreter ABI Platform Actions
cosens_sdk-0.9.0-py3-none-any.whl Python 3 none any Details for cosens_sdk-0.9.0-py3-none-any.whl

Total release size: 112.2 kB

Release files / cosens_sdk-0.9.0.tar.gz

Download URL cosens_sdk-0.9.0.tar.gz
Size 55.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c4091a8df088670168213f4e958fc98aa2b695e99adedb4ea0a4de51f06ee020
BLAKE2b-256 checksum
How to use checksums
adc8182a4f2c2db3dd7bc1ac98964537563d1f359283703371e0209dc5311d5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / cosens_sdk-0.9.0-py3-none-any.whl

Download URL cosens_sdk-0.9.0-py3-none-any.whl
Size 56.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2effa0a7d19d008f1a0b8527f260cbc460b313c64de44de9e862a252d50b2d6d
BLAKE2b-256 checksum
How to use checksums
38b89b3a0ba86c0fe1d698991528907f20828ed1066a75fd02ab773e37d03e8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for cosens-sdk 0.9.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cosens_sdk-0.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page