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 BaseAgent for structured reasoning and parsing.
  • Utilities: Distributed rate limiting (Redis) and real-time interaction telemetry.

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

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.0.tar.gz (32.8 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.0-py3-none-any.whl (43.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xrtm_forecast-0.1.0.tar.gz
  • Upload date:
  • Size: 32.8 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.0.tar.gz
Algorithm Hash digest
SHA256 138ad4c622903a2ee8da71a66c4ba60f778a2d3633b13cfb1118c76155bccb1e
MD5 155ceff3cb3283c1c200907dcc69a496
BLAKE2b-256 c050d2d43459a3c4e49b9924e6e9588b120ab65c1dcc39bd663ab1e77a52844c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xrtm_forecast-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 43.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0cecff15cb9fa1cc89a22574887b85c1c0b3ed68f74c81ed15b7fb505cf5f99
MD5 e36cab962ba0397abb34a9eea453f6b6
BLAKE2b-256 1eab078a2bf21732c554adb03e1b9d71d1c93540f6f61cae62fb7b8a435bf161

See more details on using hashes here.

Provenance

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