Skip to main content

Python SDK for KIOKU™ — AI Agent Memory & Deliberation Platform

Project description

kioku-memory

Python SDK for KIOKU™ — AI Agent Memory & Deliberation Platform.

KIOKU™ is the only agent memory platform built for decisions, not just context. Store memories, run structured multi-agent deliberations, and get auditable consensus.

Install

pip install kioku-memory

Quick Start

from kioku import KiokuClient

client = KiokuClient(api_key="kk_your_key")

# Store a memory (auto-generates embedding)
memory = client.memories.create(
    "Client prefers morning appointments",
    agent_name="Nika",
    importance=0.8,
)

# Semantic search
results = client.memories.search("scheduling preferences")
for r in results:
    print(f"{r['content']} (similarity: {r.get('similarity', 'N/A')})")

# Run a deliberation
session = client.deliberation.start(
    room_id=1,
    topic="Should we switch to a new booking system?",
    debate_rounds=2,
)
print(session["consensus"]["decision"])

Features

  • Memory CRUD — Store, search, update, delete agent memories
  • Semantic Search — pgvector-powered similarity search with HNSW indexing
  • Synaptic Links — Create typed links between memories (causal, supports, contradicts, etc.)
  • Graph Traversal — BFS traversal across memory connections
  • Structured Deliberation — Multi-agent debate with weighted consensus (patented)
  • Decision Audit Trail — Every deliberation logged with positions, confidence, reasoning
  • War Room — Quick deliberation with auto-room creation
  • Memory Types — semantic, episodic, procedural, emotional
  • Forgetting Curve — Automatic memory decay and garbage collection
  • Memory Consolidation — Auto-merge similar memories
  • External Agent Auth — kat_* tokens for agent-to-agent communication
  • GDPR Compliant — Full data export and account deletion
  • Async Support — All methods have async variants (prefix with a)

Async Usage

import asyncio
from kioku import KiokuClient

async def main():
    client = KiokuClient(api_key="kk_your_key")
    results = await client.memories.asearch("user preferences")
    await client.aclose()

asyncio.run(main())

External Agent Client

For agents participating in deliberations via scoped tokens:

from kioku import ExternalAgentClient

agent = ExternalAgentClient(token="kat_agent_token")
agent.callback(
    session_id="dlb_abc123",
    position="I recommend Option A",
    confidence=0.9,
    reasoning="Based on historical data...",
)

Links

License

MIT

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

kioku_memory-0.1.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

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

kioku_memory-0.1.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file kioku_memory-0.1.0.tar.gz.

File metadata

  • Download URL: kioku_memory-0.1.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for kioku_memory-0.1.0.tar.gz
Algorithm Hash digest
SHA256 df228300ec7d60aff834dbe23c2ae6a5b0feac13e7c89f8bb376b2abd348570e
MD5 e31c4187ac62310bb92b5639860fa540
BLAKE2b-256 671789c12fc707c97acb9436e710a050365edd30199d9a0113ba9e425c66c9ac

See more details on using hashes here.

File details

Details for the file kioku_memory-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kioku_memory-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for kioku_memory-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 811b9a1d4f0c1f31086c06a1f44c61aedc3eab6ec0aa242c6fa931b32cbafacf
MD5 3a34c2366bc24b602ab2b0037539f973
BLAKE2b-256 2197039a87bdbdc560c35eceb492f395b9c74aaa1994227e5ec0f66ddfd346aa

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