Skip to main content

V∞ — cognitive observability layer for any LLM orchestration framework

Project description

V∞ (vinfty)

Cognitive observability layer for any LLM orchestration framework.

Vinfty is a featherweight (~300 lines) Python library that adds cognitive observability to your LLM pipelines — without replacing your existing tools. It measures ont_self (self-consistency), tracks C_ij coupling (cross-session memory coherence), and detects HMM s₀/s₁ state transitions — so you know whether your system is healthy, not just whether it returned a valid JSON.

pip install vinfty

Why?

LangChain, CrewAI, AutoGen — they all solve "how to call LLMs in sequence." None of them answer:

  • Is my agent system getting more coherent or more chaotic over time?
  • Are my tool calls producing consistent results or contradicting each other?
  • Is the system in a stable (s₀) or active-search (s₁) mode?

Vinfty adds that layer. It wraps any orchestration framework and gives you a cognitive dashboard: ont_self trajectory, coupling matrix, HMM state, palace routing.

Quick Start

from vinfty import V9Orchestrator

engine = V9Orchestrator(active_k=100)

# Register any function as a tool → maps to a Palace domain
@engine.register(palace="P_search")
def search_web(q: str) -> str:
    return f"search results for {q}"

@engine.register(palace="P_analysis")
def calculate(expr: str) -> float:
    return eval(expr)

# Each call updates the cognitive state
engine.step("search latest LLM papers", tool=search_web)
engine.step("how many published this month?", tool=calculate)

# Check system health
report = engine.report()
# → {
#   "ont_self": 0.72,
#   "hmm_state": "s0"|"s1",
#   "palace_flow": ["P_query", "P_search", "P_analysis"],
#   "c_ij_density": 0.34,
#   "memory_count": 12,
# }

Core Concepts

Concept What it measures Analogy
ont_self System self-consistency "Is my agent making consistent decisions?"
C_ij Cross-session memory coupling "Do past decisions influence present ones coherently?"
HMM s₀/s₁ Cognitive mode "Is the system in stable execution (s₀) or active exploration (s₁)?"
Palace Functional domain "Which cognitive domain is each tool call serving?"

Adapters

Vinfty ships with adapters for common frameworks:

# LangChain adapter
from vinfty.adapters.langchain import LangChainAdapter

adapter = LangChainAdapter(agent)
report = adapter.run_with_observability(user_query)
# Same result as agent.run(), plus cognitive report

No LLM Required

Vinfty is pure symbolic computation — no API keys, no GPU, no model weights. The cognitive metrics are derived from the structure of your tool calls and memory traces, not from the content of LLM responses.

License

MIT

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

vinfty-0.1.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

vinfty-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file vinfty-0.1.0.tar.gz.

File metadata

  • Download URL: vinfty-0.1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for vinfty-0.1.0.tar.gz
Algorithm Hash digest
SHA256 94148c22e438ab3c431f1382dd7eb885bd8a7b61f69a1754c10a9dd23619779c
MD5 ea928a9b82ca30ec4d4aa0b347e47488
BLAKE2b-256 0dae44b4dc6370aac67f1506dde77d3359c0bd6d5132f5ee4932d87736487da5

See more details on using hashes here.

File details

Details for the file vinfty-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vinfty-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for vinfty-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a82fe427fe03b67787ea01bf8d37024427944545124fc0d0f6a864fcc8c7460
MD5 1da80caebc27696b1293db27f7f5c3cf
BLAKE2b-256 21256b6be81238b100b7413728d360a6a731d58fdbb17ee7ef14d405eb63b429

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