Skip to main content

Institutional-grade parallelized agentic reasoning engine.

Project description

xrtm-forecast

Institutional-grade parallelized agentic reasoning engine.

Overview

xrtm-forecast is the core intelligence engine originally developed for the CAFE (Computer-Aided Financial Engineering) platform. It provides a domain-agnostic framework for:

  • Inference Layer: Standardized provider interfaces for Gemini and OpenAI.
  • Reasoning Graph: A pluggable state-machine orchestrator for multi-agent workflows.
  • Agent Core: Standardized Agent base class for structured reasoning and parsing.
  • Skill Protocol: Composable behaviors (e.g., Search) that agents can dynamically equip.
  • Observability: OTel-native structured telemetry and institutional execution reports.
  • Evaluation: Built-in harness for backtesting and accuracy metrics (Brier Score).

Architectural Design: "Engine vs. Specialists"

xrtm-forecast is designed for modularity using a "Lego" philosophy:

  • The Engine (agents/): Core structural bricks like LLMAgent and ToolAgent.
  • The Specialists (agents/specialists/): Pre-built expert roles like the ForecastingAnalyst.
  • The Registry: A central exchange for discovering and plugging in agents and tools.

For a deep dive, see Architecture & Design Principles.

Installation

From PyPI (Stable)

pip install xrtm-forecast

# With extras (redis, memory)
pip install "xrtm-forecast[redis,memory]"

From Source (Latest)

pip install git+https://github.com/xrtm-org/forecast.git

Configuration

xrtm-forecast relies on environment variables for API keys and service connections. Create a .env file in your project root:

GEMINI_API_KEY=your_key_here
REDIS_URL=redis://localhost:6379/0  # Optional (fallback to in-memory)

Quick Start: Inference

import asyncio
from forecast import ModelFactory
from forecast.inference.config import GeminiConfig
from pydantic import SecretStr

async def main():
    config = GeminiConfig(
        api_key=SecretStr("your-key"), 
        model_id="gemini-2.0-flash-lite"
    )
    provider = ModelFactory.get_provider(config)
    response = await provider.generate_content_async("What is the causality of inflation?")
    print(response.text)

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

Documentation & Examples

  • Architecture: The "Lego" Design
  • Agent Registry: Pre-built & Core Agents
  • Examples: Check the examples/ directory for structured entry points:
    • core/: Basic library usage.
    • features/: Specialized modules (Skills, Eval, Telemetry).
    • pipelines/: End-to-end multi-agent workflows.

Contributing

We welcome institutional-grade contributions! Please see CONTRIBUTING.md for setup instructions and our development workflow.


License

xrtm-forecast is open-source software licensed under the Apache-2.0 license. See the LICENSE file for more details.

Copyright © 2026 XRTM Team.

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.1.1.tar.gz (37.9 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.1.1-py3-none-any.whl (52.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xrtm_forecast-0.1.1.tar.gz
  • Upload date:
  • Size: 37.9 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.1.1.tar.gz
Algorithm Hash digest
SHA256 3b94cea039f7723233e5e2406cb72bdcbe59d5030d0de10f4dbbf7059cba443c
MD5 55b9066ed9f53b1c099bd3ea4f7308a0
BLAKE2b-256 d039439f9a16f552e1981fe9dc2b34e5f65f80f42553409f9b13bace97751e8f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xrtm_forecast-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 52.3 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 231aee6505b1884e62fcf06781c385d6af73e67525fc2c8f919e6efffe5c679b
MD5 b879fc76ed347993ee8833435686e2bb
BLAKE2b-256 028cf2828860112837727ac736f753585f7861c944725ebd9254f83e5e6f9f2c

See more details on using hashes here.

Provenance

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