| Crates.io | attuned-core |
| lib.rs | attuned-core |
| version | 1.0.1 |
| created_at | 2025-12-18 17:38:56.75516+00 |
| updated_at | 2025-12-18 19:41:40.346854+00 |
| description | Core types and traits for Attuned - human state representation for LLM systems |
| homepage | |
| repository | https://github.com/JtPerez-Acle/Attuned |
| max_upload_size | |
| id | 1992978 |
| size | 124,121 |
Core types and traits for Attuned - human state representation for LLM systems.
This crate provides the foundational types for representing human state as interpretable vectors across 23 canonical axes. It includes:
PromptContextuse attuned_core::{StateSnapshot, RuleTranslator, Source};
// Create a state snapshot
let state = StateSnapshot::builder()
.user_id("user_123")
.source(Source::SelfReport)
.axis("cognitive_load", 0.8)
.axis("stress_level", 0.6)
.axis("warmth", 0.7)
.build()?;
// Translate to prompt context
let translator = RuleTranslator::default();
let context = translator.to_prompt_context(&state);
// Use context.guidelines in your LLM system prompt
println!("Tone: {}", context.tone);
println!("Verbosity: {:?}", context.verbosity);
println!("Guidelines: {}", context.guidelines);
| Category | Axes | Purpose |
|---|---|---|
| Cognitive | 4 | Mental load, decision fatigue, complexity tolerance, focus |
| Emotional | 4 | Stress, frustration, confidence, enthusiasm |
| Social | 5 | Formality, warmth, assertiveness, patience, trust |
| Preferences | 4 | Verbosity, detail level, example preference, pacing |
| Control | 4 | Autonomy, agency, transparency, override |
| Safety | 2 | Vulnerability, crisis indicators |
Apache-2.0