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
Agentbase 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 likeLLMAgentandToolAgent. - The Specialists (
agents/specialists/): Pre-built expert roles like theForecastingAnalyst. - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b94cea039f7723233e5e2406cb72bdcbe59d5030d0de10f4dbbf7059cba443c
|
|
| MD5 |
55b9066ed9f53b1c099bd3ea4f7308a0
|
|
| BLAKE2b-256 |
d039439f9a16f552e1981fe9dc2b34e5f65f80f42553409f9b13bace97751e8f
|
Provenance
The following attestation bundles were made for xrtm_forecast-0.1.1.tar.gz:
Publisher:
publish.yml on xrtm-org/forecast
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xrtm_forecast-0.1.1.tar.gz -
Subject digest:
3b94cea039f7723233e5e2406cb72bdcbe59d5030d0de10f4dbbf7059cba443c - Sigstore transparency entry: 803632499
- Sigstore integration time:
-
Permalink:
xrtm-org/forecast@c134eb6a74dbe08e79e5f5bda25589d2859e263f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/xrtm-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c134eb6a74dbe08e79e5f5bda25589d2859e263f -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
231aee6505b1884e62fcf06781c385d6af73e67525fc2c8f919e6efffe5c679b
|
|
| MD5 |
b879fc76ed347993ee8833435686e2bb
|
|
| BLAKE2b-256 |
028cf2828860112837727ac736f753585f7861c944725ebd9254f83e5e6f9f2c
|
Provenance
The following attestation bundles were made for xrtm_forecast-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on xrtm-org/forecast
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xrtm_forecast-0.1.1-py3-none-any.whl -
Subject digest:
231aee6505b1884e62fcf06781c385d6af73e67525fc2c8f919e6efffe5c679b - Sigstore transparency entry: 803632505
- Sigstore integration time:
-
Permalink:
xrtm-org/forecast@c134eb6a74dbe08e79e5f5bda25589d2859e263f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/xrtm-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c134eb6a74dbe08e79e5f5bda25589d2859e263f -
Trigger Event:
release
-
Statement type: