Institutional-grade parallelized agentic reasoning engine.
Project description
xrtm-forecast
Institutional-grade parallelized agentic reasoning engine.
Overview
xrtm-forecast is an institutional-grade, domain-agnostic intelligence engine. It provides a framework for:
- Inference Layer: Standardized provider interfaces for Gemini, OpenAI, and local Hugging Face models.
- Tiered Reasoning: Composite
RoutingAgentfor cost-optimized task dispatching. - 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, SQL, Pandas) 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: "Pure Core, Practical Shell"
xrtm-forecast is designed for modularity using the "Pure Core, Practical Shell" philosophy:
- The Core (
agents/,inference/): Strict abstract logic and standardized interfaces. - The Shell (
assistants/,tools/): Pre-built expert roles, ergonomic factories, and specialized skills. - 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 institutional extras
pip install "xrtm-forecast[local,data,redis,memory]"
From Source (Latest)
pip install git+https://github.com/xrtm-org/forecast.git
Configuration
xrtm-forecast follows a decentralized configuration pattern. Global environment variables are used for infrastructure (API keys), while specific behaviors are controlled via module-level configuration classes.
1. Environment Secrets
Set your API keys in a .env file or environment:
# Core API Keys
GEMINI_API_KEY=your_key_here
OPENAI_API_KEY=your_key_here
TAVILY_API_KEY=your_key_here
2. Component Configuration
Each major module (inference, graph, telemetry, tools) has its own config.py defining its schema. This allows you to instantiate multiple components with different settings in the same process.
Quick Start
xrtm-forecast is designed for high-end ergonomics. Use the pre-configured assistants to start forecasting in seconds:
import asyncio
from forecast import create_forecasting_analyst
async def main():
# 1. Instantiate the analyst with a shortcut
# (API keys are automatically injected from your .env file)
agent = create_forecasting_analyst(model_id="gemini")
# 2. Execute reasoning on a complex probabilistic question
result = await agent.run(
"Will a general-purpose AI (AGI) be publicly announced before 2030?"
)
print(f"Confidence: {result.confidence}")
print(f"Reasoning: {result.reasoning}")
if __name__ == "__main__":
asyncio.run(main())
Documentation & Examples
- Architecture: The "Lego" Design
- Agent Registry: Pre-built & Core Agents
- Examples: Check the examples/ directory:
- examples/minimal_agent.py: One-line agent setup.
- examples/core/local_analyst.py: Private reasoning with HF models.
- examples/features/tiered_reasoning.py: Optimal routing between Fast/Smart tiers.
- examples/features/enterprise_data.py: Integrated SQL and Pandas analytics.
- examples/features/discovery.py: Dynamic skill discovery.
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.3.tar.gz.
File metadata
- Download URL: xrtm_forecast-0.1.3.tar.gz
- Upload date:
- Size: 57.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
188004362aaba7aa779796f21c38c300afb5eac4736923281356ff45f1f16b5c
|
|
| MD5 |
e7fa73c8c10e217cc80df73019d29ca3
|
|
| BLAKE2b-256 |
2b38a99d579b4b1af6aad6ff83d032309f6cd5716375965f6b41ee9efa87cafd
|
Provenance
The following attestation bundles were made for xrtm_forecast-0.1.3.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.3.tar.gz -
Subject digest:
188004362aaba7aa779796f21c38c300afb5eac4736923281356ff45f1f16b5c - Sigstore transparency entry: 804648068
- Sigstore integration time:
-
Permalink:
xrtm-org/forecast@7b8a549850b06f0b9325b1875c246c5a3796970e -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/xrtm-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7b8a549850b06f0b9325b1875c246c5a3796970e -
Trigger Event:
release
-
Statement type:
File details
Details for the file xrtm_forecast-0.1.3-py3-none-any.whl.
File metadata
- Download URL: xrtm_forecast-0.1.3-py3-none-any.whl
- Upload date:
- Size: 100.5 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 |
a015e273b08d62d8724347477fac0795bd6e6719f5e30454ae6028f8a22684be
|
|
| MD5 |
19ee726f64fc23d2a80cbfe95d30de57
|
|
| BLAKE2b-256 |
c51a0a6cce2a77a1e8707247a2d7823a46938b03b2298577dfe6631526f1dbad
|
Provenance
The following attestation bundles were made for xrtm_forecast-0.1.3-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.3-py3-none-any.whl -
Subject digest:
a015e273b08d62d8724347477fac0795bd6e6719f5e30454ae6028f8a22684be - Sigstore transparency entry: 804648070
- Sigstore integration time:
-
Permalink:
xrtm-org/forecast@7b8a549850b06f0b9325b1875c246c5a3796970e -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/xrtm-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7b8a549850b06f0b9325b1875c246c5a3796970e -
Trigger Event:
release
-
Statement type: