Skip to main content

A unified SDK for creating AI characters with memory, personality, and decision-making capabilities

Project description

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

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

ai_character_sdk-0.1.1.tar.gz (30.0 kB view details)

Uploaded Source

Built Distribution

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

ai_character_sdk-0.1.1-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file ai_character_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: ai_character_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 30.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for ai_character_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 918a0b82289ee021dc6fb0f9e062e5ab550da1cb57890b0591a903dd547e12ee
MD5 8e34a568c5aa6b5ebad0d09e0b13077c
BLAKE2b-256 ecb023a309ca65cb9809b3aa45f63f4d52ec1017b60df8389ca87734074b00ec

See more details on using hashes here.

File details

Details for the file ai_character_sdk-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_character_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ae7e402f0b47b44569a004a73f003bc49584f180af2ff107003504a827f1533
MD5 d02500e012da7d352a20616508b72331
BLAKE2b-256 669c133b8ed5740ec27c1477f3759769b48bad992a9c91da5baded344e593988

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