Skip to main content

Institutional-grade modular engine for generative forecasting and agentic reasoning.

Project description


License Status Build Website

xrtm-forecast

Professional engine for generative forecasting and agentic reasoning

xrtm-forecast acts as the rigorous backbone for state-of-the-art agentic workflows, bridging the gap between rapid prototyping and mission-critical deployment.

It centralizes the "Reasoning Graph" definition so that agent behaviors are deterministic and auditable. forecast is the pivot across the ecosystem: if a provider is supported, it can be plugged into any agent topology (Orchestrator, Debate, Consensus) without changing business logic.

We pledge to uphold research-grade transparency: strict typing, zero-tolerance verification, and rigorous double-trace auditability for every decision made by an AI.

Installation

Standard Installation (Cloud + Core)

pip install xrtm-forecast

Hardware-Specific Local Inference

pip install "xrtm-forecast[transformers]"  # PyTorch + HuggingFace
pip install "xrtm-forecast[vllm]"          # High-throughput serving
pip install "xrtm-forecast[llama-cpp]"     # CPU-optimized GGUF
pip install "xrtm-forecast[xlm]"           # Local Encoder specialists

Quickstart

Get started with xrtm-forecast right away with the Analyst API. The Analyst is a high-level reasoning class that supports research, search, and probability estimation.

import asyncio
from forecast import create_forecasting_analyst

async def main():
    # 1. Instantiate the analyst (API keys injected from env)
    agent = create_forecasting_analyst(model_id="gemini")
    
    # 2. Execute reasoning loop
    result = await agent.run(
        "Will a general-purpose AI (AGI) be publicly announced before 2030?"
    )
    
    # 3. Inspect the rigorous output
    print(f"Confidence: {result.confidence}")
    print(f"Reasoning: {result.reasoning}")

if __name__ == "__main__":
    asyncio.run(main())

Roadmap

To understand our vision for "Institutional Grade" forecasting, including our focus on Time Travel (Chronos), Calibration, and Dynamic Trajectories (Sentinel), please read our Strategic Roadmap.

Key Features (v0.3.0)

  • Institutional Grade Physics:
    • Chronos Protocol: Time-travel safe backtesting using TemporalContext and freezegun.
    • Sentinel Protocol: Forecast trajectories (ForecastTrajectory) to track probability over time.
    • Calibration: Native PlattScaler and Brier Score decomposition for rigorous probability.
  • Advanced Reasoning:
    • Recursive Consensus: Peer-review topology that loops until confidence threshold is met.
    • Fact-Checking: Dedicated FactCheckerAgent to verify claims against external tools.
    • Orchestrator: Async graph engine with conditional edge support.
  • Safety & Compliance:
    • Async Runtime: Managed event loop facade.
    • Provider Interface: Swap out OpenAI for Anthropic, Gemini, or vLLM with zero code changes.
    • Sovereign Memory: Abstracted vector storage (ChromaDB) for RAG pipelines.

Why should I use xrtm-forecast?

  1. Temporal Integrity (The Time Machine):

    • Most agent frameworks leak future data during backtests. xrtm-forecast has a Temporal Sandboxing engine that rigidly enforces cut-off dates for search and memory.
    • Verify your strategies against past market events with zero look-ahead bias.
  2. Probabilistic Rigor:

    • Agents are treated as calibrated instruments, not just chatbots. We support native Brier Score calculation, Reliability Diagrams, and Confidence Interval estimation out of the box.
  3. Double-Trace Auditability:

    • Forecasting requires accountability. We provide a dual-layer audit trail: Structural (OTel traces of execution flow) and Logical (reasoning snapshots) for every prediction.
  4. Dynamic Trajectories (Sentinel Protocol):

    • Move beyond static snapshots. Our architecture supports continuous forecasting, allowing agents to ingest streaming news and output probability updates over time without expensive re-runs.
  5. Hybrid "Quant-Qual" Intelligence:

    • Seamlessly mix fast statistical models (e.g., ARIMA, XGBoost) with slow, deliberative LLM Agents in the same graph.
    • Orchestrate complex "Consensus" topologies where multiple agents debate to reduce variance.

Why shouldn't I use xrtm-forecast?

  • You need a generic "Chat with PDF" or "Customer Support" bot. We are hyper-focused on Forecasting and Research workflows.
  • You want "magic" autoscaling or loose typing. We prioritize correctness, repeatability, and type-safety over ease of prototyping.
  • You don't care about backtesting or time-travel debugging.

Example Components

xrtm-forecast comes with a comprehensive Kit of pre-built instruments. Expand the categories below to see examples.

Agents (Personas)
Topologies (Interaction Patterns)
  • Debate: Two agents arguing for opposing sides before a judge.
  • Consensus: Multiple agents varying in temperature converging on a decision.
  • Orchestrator Basics: Building a custom state machine from scratch.
Capabilities (Skills)

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

xrtm_forecast-0.3.0.tar.gz (90.5 kB view details)

Uploaded Source

Built Distribution

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

xrtm_forecast-0.3.0-py3-none-any.whl (153.2 kB view details)

Uploaded Python 3

File details

Details for the file xrtm_forecast-0.3.0.tar.gz.

File metadata

  • Download URL: xrtm_forecast-0.3.0.tar.gz
  • Upload date:
  • Size: 90.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xrtm_forecast-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5c08a6b4edcda10d6317d580880c7c6ae7daab917ecd30b10d5df1caf65d6d0c
MD5 f03934e5b113767a12b24a5b6281ab00
BLAKE2b-256 b535831db7028932f64f10567093bc241b72bb37791de04e30e060404cc6f387

See more details on using hashes here.

Provenance

The following attestation bundles were made for xrtm_forecast-0.3.0.tar.gz:

Publisher: publish.yml on xrtm-org/forecast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xrtm_forecast-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: xrtm_forecast-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 153.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xrtm_forecast-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf74a17e899674c3ca7ad00c4cfd4438ed78f9e61f0f67b0a96d73b356f6422f
MD5 2936d0d1f1811689c5101cef49b0ddf3
BLAKE2b-256 1e3fc18932e11bc9d7a29d0bb0cc53bef747ec80ea91f721ee8cce6cacb7de91

See more details on using hashes here.

Provenance

The following attestation bundles were made for xrtm_forecast-0.3.0-py3-none-any.whl:

Publisher: publish.yml on xrtm-org/forecast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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