Skip to main content

ai-character-sdk

A unified Python SDK for creating AI characters with memory, personality, and decision-making capabilities. Combines an escalation engine, hierarchical memory, and outcome learning into a simple API.

Brand Line

Characters that remember, learn, and decide — built for fleet members.

Installation

pip install cocapn-ai-character-sdk

Quick Start

from ai_character_sdk import Character

# Create a character
hero = Character(
    name="Finn the Brave",
    character_class="paladin",
    personality={"bravery": 0.9, "kindness": 0.8}
)

# Use the character
response = hero.think("I see a goblin approaching")
print(response.content)

# Remember experiences
hero.remember("The goblin was actually friendly", importance=7.0)

# Learn from outcomes
hero.learn(outcome="Made a new ally", success=True, reward=10.0)

Features

  • Unified Character API — Simple, intuitive interface for character creation
  • 6-Tier Memory System — Hierarchical memory inspired by cognitive neuroscience
  • Intelligent Decision Routing — Cost-effective escalation engine (BOT/BRAIN/HUMAN tiers)
  • Dynamic Personality — Trait-based behavior system
  • Outcome Learning — Reinforcement learning from experience
  • Persistence — Save and load character state
  • Character Presets — Pre-built archetypes to get started quickly

Fleet Context

Part of the Cocapn fleet. Related repos:


🦐 Cocapn fleet — lighthouse keeper architecture

Metadata

Release files for ai-character-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 ai-character-sdk 0.1.1
File Size Uploaded Provenance Actions
ai_character_sdk-0.1.1.tar.gz 30.0 kB Without provenance Details for ai_character_sdk-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 62.7 kB

Release files / ai_character_sdk-0.1.1.tar.gz

Download URL ai_character_sdk-0.1.1.tar.gz
Size 30.0 kB
Tags Source
SHA-256 checksum
How to use checksums
918a0b82289ee021dc6fb0f9e062e5ab550da1cb57890b0591a903dd547e12ee
BLAKE2b-256 checksum
How to use checksums
ecb023a309ca65cb9809b3aa45f63f4d52ec1017b60df8389ca87734074b00ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

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

Download URL ai_character_sdk-0.1.1-py3-none-any.whl
Size 32.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ae7e402f0b47b44569a004a73f003bc49584f180af2ff107003504a827f1533
BLAKE2b-256 checksum
How to use checksums
669c133b8ed5740ec27c1477f3759769b48bad992a9c91da5baded344e593988
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for ai-character-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.

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.1 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