Skip to main content

YUYAY Intelligence Framework — UN Office of the Future

Project description

YUYAY Intelligence Framework

CI Coverage PyPI version Python versions

A multi-dimensional intelligence framework for evaluating alignment across 12 archetype dimensions — developed for the UN Office of the Future by Mitchell Gold.

pip install yuyay

Quickstart

from yuyay.archetypes import get_archetype_by_name
from yuyay.questionnaire import process_responses
from yuyay.fios import FIOS, FIOSConfig

# Look up an archetype
archetype = get_archetype_by_name("The Seer")
print(archetype.summary())
# → The Seer: Vision, source insight, coherence sensing

# Process questionnaire responses
report = process_responses({
    "1a": "YES",
    "1b": "NO", 
    "2a": "PO",
})
print(report.summary())
# → YES: 1 | NO: 1 | PO: 1 | Total: 3 | Flagged: 2

# Query an LLM with YUYAY context injected
import asyncio

async def main():
    fios = FIOS(FIOSConfig(
        provider="anthropic",
        model="claude-opus-4-6",
        api_key="your-key",
    ))
    result = await fios.query("What is the highest purpose of technology?")
    print(result.summary())
    # → [anthropic/claude-opus-4-6] Tokens: 850 | Latency: 1240ms | Coherence: 80/100 | Cost: $0.002400

asyncio.run(main())

Modules

Module Purpose
archetypes.py 12 YUYAY archetypes with gifts and shadow aspects
transformers.py 10 transformer questions with lookup functions
wheel.py Co-Creation Wheel — 12 societal sectors
questionnaire.py YES/NO/PO response processor with scoring
po.py Edward de Bono PO lateral thinking logic
fios.py LLM orchestration — OpenAI, Anthropic, Google
exceptions.py Custom exception hierarchy
config.py Environment-based configuration

FIOS — LLM Orchestration

FIOS (Foundational Intelligent OS) injects the full YUYAY framework as system context into any LLM query and evaluates the response for coherence.

from yuyay.fios import FIOS, FIOSConfig

# Query all three providers concurrently
fios = FIOS(FIOSConfig(provider="mock", model="mock-model"))
results = await fios.query_all_providers(
    "What is wisdom?",
    configs=[
        FIOSConfig(provider="anthropic", model="claude-opus-4-6", api_key="..."),
        FIOSConfig(provider="openai", model="gpt-4", api_key="..."),
        FIOSConfig(provider="google", model="gemini-pro", api_key="..."),
    ]
)
for r in results:
    print(r.summary())

Features:

  • Provider adapter pattern — swap providers without changing business logic
  • Automatic YUYAY context injection into every prompt
  • Response coherence scoring against 12 archetype dimensions
  • Token usage tracking and cost estimation per provider
  • Retry logic with exponential backoff
  • Circuit breaker pattern for resilience
  • Concurrent multi-provider queries via asyncio

The 12 Archetypes

The Seer · The Architect · The Bridgebuilder · The Steward · The Navigator · The Maker · The Catalyst · The Harmonizer · The Sage · The Oracle · The Alchemist · The Weaver

The Transformer Questions (10 questions, 12 response fields)

Questions 1 and 2 have sub-parts (a and b), giving 12 total response fields.

Each answerable as YES, NO, or PO (Edward de Bono's lateral thinking operator):

  1. Does the idea serve my highest purpose?
  2. Is it relevant?
  3. Do I have enough information to decide?
  4. Can we involve other stakeholders?
  5. Am I being Wise?
  6. Are Judgments or Bias present?
  7. Have I used compassion and mercy?
  8. Is my heart making the decision on its own?
  9. Does this allow peak performance?
  10. Will something of lasting endurance be created?

Links


Developed by Mitchell Gold — UN Office of the Future
Engineering by Ekansh Singh — Georgia Institute of Technology

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

yuyay-0.3.1.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

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

yuyay-0.3.1-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file yuyay-0.3.1.tar.gz.

File metadata

  • Download URL: yuyay-0.3.1.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for yuyay-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c4723f8fb5fdff736cb8592e4b8d8a22670cd038946fd3a83695453ecc96c913
MD5 7970ec4d1481b897718ffe7467f36fc3
BLAKE2b-256 50f01b8942b039167780766ee08f2eb8f2e2e8b12cfc4dde9392befa477adb09

See more details on using hashes here.

File details

Details for the file yuyay-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: yuyay-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for yuyay-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b81c0639e9c8ec2d1150bcb9bd64fd72a571cf4120ca26d1fe51e3984ced1ebd
MD5 3c6917418065178a951fd16bed9f6a73
BLAKE2b-256 a10400a1b1acbddc38e6923b0e77e797ab96b22b3919b2eea8dfb81d68eba9a9

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