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.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 cluestate-sdk 0.1.0
File Size Uploaded Provenance Actions
cluestate_sdk-0.1.0.tar.gz 5.1 kB Without provenance Details for cluestate_sdk-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 10.5 kB

Release files / cluestate_sdk-0.1.0.tar.gz

Download URL cluestate_sdk-0.1.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9d42bd8a4ea753b5bba4160271ef72592b0086417ca66623d11d98a1a5a240aa
BLAKE2b-256 checksum
How to use checksums
bc3ed151d5249c0554936d11e0c00cd8ed80a3e4a40e5bebfd4ca1b9f245a065
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

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

Download URL cluestate_sdk-0.1.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e5d3664a6c7f8e83f804c1dfb45361a0180388c80be2a4a5a299b8b9f816df3
BLAKE2b-256 checksum
How to use checksums
d3f233e787870f9f7aae7f8e655dc73c44e62f67c53e30dde5de0b2018115bc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for cluestate-sdk 0.1.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.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No 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