Skip to main content

Python API

Complete reference for the sxth-mind Python SDK.

Mind

The central abstraction.

Methods

chat()

Send a message and get a response. State is managed automatically.

chat_stream()

Stream a response token by token.

get_state()

Get cognitive state as a dictionary.

explain_state()

Get a human-readable state summary.

get_pending_nudges()

Get pending nudges for a user.

BaseAdapter

Abstract base class for domain adapters.

Required Methods

Optional Methods


Schemas

UserMind

ProjectMind

Event

Raw evidence read from an EvidenceSource — the rented substrate. Not part of the belief state.

Nudge


Storage

BaseStorage

BaseStorage persists the belief state only. Raw history is handled by the EvidenceSource, not storage.

MemoryStorage

SQLiteStorage


Evidence

The rented raw substrate — messages, actions, signals — that sxth-mind reads but does not own. Pass one via Mind(evidence=...).

EvidenceSource

Back it with your own database, a memory vendor (Mem0, Zep), or the bundled LocalEvidenceSource:

Providers

BaseLLMProvider

OpenAIProvider


Nudge Engine