Skip to main content

ClueState Python SDK

Lightweight, typed Python client (sync & async) for ClueState.

Installation

# Lightweight client-only package (depends only on httpx and pydantic)
pip install ./sdks/python

# Or if you have the full ClueState engine installed:
pip install .

Quick Start

from cluestate_sdk import ClueState

cs = ClueState(
    api_key="cs_live_YOUR_API_KEY",
    base_url="https://app.cluestate.com",
)

# 1. Define a schema topic
cs.topics.create(
    name="annual_budget",
    description="Approved annual software budget",
    data_type="number",
    cardinality="single",
    update_policy="replace",
)

# 2. Ingest an interaction
result = cs.ingest(
    external_id="cust_402",
    entity_name="Marcus Vance",
    content="Our approved software budget for Q4 is $25,000.",
    source_type="support_ticket",
    idempotency_key="evt_ticket_8841",
)

for mem in result.memories:
    print(f"[{mem.topic_name}] {mem.claim} (value={mem.structured_value})")

# 3. Retrieve compiled customer state
intel = cs.get_intel("cust_402")
print(intel.formatted_prompt)

Async Client (AsyncClueState)

import asyncio
from cluestate_sdk import AsyncClueState

async def main():
    async with AsyncClueState(api_key="cs_live_YOUR_API_KEY") as cs:
        intel = await cs.get_intel("cust_402")
        print(intel.formatted_prompt)

asyncio.run(main())

Metadata

Release files for cluestate-sdk 0.1.1

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

Source distribution (sdist)

Source distribution for cluestate-sdk 0.1.1
File Size Uploaded Provenance Actions
cluestate_sdk-0.1.1.tar.gz 5.2 kB With provenance Details for cluestate_sdk-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cluestate-sdk 0.1.1
File Interpreter ABI Platform Actions
cluestate_sdk-0.1.1-py3-none-any.whl Python 3 none any Details for cluestate_sdk-0.1.1-py3-none-any.whl

Total release size: 10.7 kB

Release files / cluestate_sdk-0.1.1.tar.gz

Download URL cluestate_sdk-0.1.1.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e53f93978b6e48bb28a976415a7f052844310976199ed793c181e69656d914f9
BLAKE2b-256 checksum
How to use checksums
fa24862f7a3411eb6a234cda6e9d486dd3b5c6bca4b1a26886ad18cea8ec20c5
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 1, 2026.

Transparency log

Release files / cluestate_sdk-0.1.1-py3-none-any.whl

Download URL cluestate_sdk-0.1.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea4b4113995c0e842417e78ff87ffb1c43fd9919a662c5d2ec8ffd055c7d4bef
BLAKE2b-256 checksum
How to use checksums
90b0543600cf03ae31b33f4fe231d55f22bda932c40f05c247e6df7ef7592093
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 1, 2026.

Transparency log

Security for cluestate-sdk 0.1.1

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 cluestate_sdk-0.1.1.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 1, 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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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