mirror of
https://github.com/hanzoai/persona.git
synced 2026-10-30 18:24:59 +00:00
main
The forge reads .github/workflows natively and github.com reads nothing else, so one directory serves both planes instead of two conventions that disagree about which one is live. The reusable in hanzoai/ci already lives there, so a caller naming that path now resolves to a file that exists. Co-authored-by: Hanzo Dev <[email protected]>
Persona
Framework for loading, validating, and working with personality profiles.
Provides loaders (Rust, TypeScript, Python), JSON schemas, and CLI tools for the Hanzo Personas dataset.
Install
# Python
pip install hanzo-persona
# Node.js
npm install @hanzo/persona
# Rust
cargo add hanzo-persona
Usage
from persona import load, get
# Load all personas
personas = load()
# Get a specific persona
feynman = get("feynman")
print(feynman.traits.openness) # 0.95
import { PersonaLoader } from '@hanzo/persona'
const loader = new PersonaLoader()
const feynman = loader.get('feynman')
console.log(feynman.traits.openness) // 0.95
use hanzo_persona::PersonaLoader;
let loader = PersonaLoader::default();
let feynman = loader.get("feynman").unwrap();
println!("{}", feynman.traits.openness); // 0.95
Schemas
schemas/personality.schema.json— JSON Schema for profile validationschemas/persona_schema.yaml— YAML schema for PERSONA.md frontmatter
Tools
scripts/validate.js— validate profiles against schemascripts/split-personalities.js— split bulk data into individual filestools/unix_tools.yaml— tool preference definitions
Data
Persona data (707 JSON profiles + 14 PERSONA.md files) lives in hanzoai/personas.
License
MIT
Description
Loaders, schemas, and CLI tools for working with Hanzo Personas personality profiles.
900 KiB
Languages
JavaScript
58.6%
Python
38.8%
Shell
2.6%