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())

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. 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.
  4. 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.

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.2.2.tar.gz (82.4 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.2.2-py3-none-any.whl (141.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xrtm_forecast-0.2.2.tar.gz
  • Upload date:
  • Size: 82.4 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.2.2.tar.gz
Algorithm Hash digest
SHA256 572e72a4eeda86f6fcc30f2e6b8e3c79cca155c25e91b10ddd74f1c8e94a9e36
MD5 17cf2b55d7ecbe291f8bf0de727a5a45
BLAKE2b-256 92403f3e4df23e78f3c47ce0a69fee7049c0fe3d9ea7cf3894710fa72d6c668a

See more details on using hashes here.

Provenance

The following attestation bundles were made for xrtm_forecast-0.2.2.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.2.2-py3-none-any.whl.

File metadata

  • Download URL: xrtm_forecast-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 141.4 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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a97917d35b0dea637295d1115528f84da1a88c5a4eee58651dc780f0412423e
MD5 92d116706660618d5a6fc069239ee57b
BLAKE2b-256 a8163d5c19f3c2cd2276e90f3d685524da60051c40645d2bf2370df3761615ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for xrtm_forecast-0.2.2-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