Open-source agentic framework for fleet telematics analytics, fuel anomaly detection, and predictive maintenance.
Project description
Siphyy
Open-source agentic framework for fleet telematics analytics — fuel anomaly detection, predictive maintenance, and driver behavior intelligence, with a provider-agnostic canonical schema and structured LLM reasoning.
What it does
Fleet operations data lives in dozens of telematics platforms (Samsara, Geotab, Trakzee, Verizon Connect, regional providers, raw OBD-II streams) — each with its own schema, polling cadence, and quirks. Siphyy normalises all of them into a single canonical event stream, runs cheap deterministic detectors over that stream, and uses an LLM agent grounded in a curated case base to interpret only the events that matter.
The output is structured, auditable, and ready to be wired into fleet management systems — not free-text mechanic advice.
Architecture in 30 seconds
[Telematics Provider] ← Samsara, Geotab, Trakzee, OBD-II, ...
│
▼
[Adapter] ← Translates provider → canonical schema
│
▼
[Tier 1: Detector] ← Cheap rule-based detection. No LLMs.
│
▼ (interesting events only)
[Tier 2: LLM Agent] ← Agentic RAG over case base + OEM manuals
│
▼
[Structured Output] ← FuelAnomalyReport, MaintenanceRiskReport, ...
Quickstart
The fastest way to see the framework in action:
git clone https://github.com/siphyy/siphyy-core.git
cd siphyy-core
uv sync # installs everything incl. dev tools
uv run python examples/quickstart.py
The quickstart loads examples/data/sample_trakzee.json (17 anonymised, synthetic rows), runs the full pipeline, and prints structured fuel-anomaly reports. It auto-detects which LLM provider to use:
OPENAI_API_KEYin env → usesOpenAILLMClient(real call againstgpt-4o-mini)ANTHROPIC_API_KEYin env → usesAnthropicLLMClient(real call againstclaude-haiku-4-5)- Neither → uses
MockLLMClientwith realistic canned verdicts, so the demo works with zero setup
Drop a .env at the repo root with your key(s) and the quickstart picks them up automatically (python-dotenv is in the dev extras).
Install just the library
pip install "siphyy[trakzee,llm]"
# or
uv pip install "siphyy[trakzee,llm]"
The minimal in-code version of what the quickstart runs:
from siphyy.adapters import TrakzeeAdapter
from siphyy.agents import FuelAnomalyAgent, OpenAILLMClient
from siphyy.detectors import FuelSiphonageDetector
from siphyy.knowledge import SEED_CASES
from siphyy.schema import CaseBase
# 1. Translate raw provider rows into canonical TelemetryReading events.
adapter = TrakzeeAdapter()
# 2. Tier 1: cheap, deterministic rules surface candidates.
detector = FuelSiphonageDetector()
# 3. Tier 2: an LLM-grounded agent interprets each candidate against
# historical cases. The LLMClient is pluggable — swap OpenAILLMClient
# for an Anthropic / Gemini / Ollama implementation without touching
# agent code (see "Bring your own LLM" below).
agent = FuelAnomalyAgent(
llm_client=OpenAILLMClient(), # reads OPENAI_API_KEY from env
case_base=CaseBase(SEED_CASES),
)
for event in adapter.adapt(trakzee_rows):
if (interesting := detector.process(event)) and (report := agent.process(interesting)):
print(report.assessment, report.confidence, report.summary)
Bring your own LLM
LLMClient is a Protocol with a single method. To use a different provider, implement it in ~20 lines:
from pydantic import BaseModel
from siphyy.agents import LLMClient
class MyAnthropicClient: # satisfies LLMClient structurally
def complete[T: BaseModel](self, *, system, user, response_model: type[T]) -> T:
... # call Anthropic's tool-use endpoint, return response_model(**parsed)
The agent itself doesn't import anthropic or openai — only the client implementation does, so optional extras stay optional.
Why open source
The framework is Apache 2.0 and always will be. The plumbing — canonical schema, adapters, detectors, agent code — is the commodity. What we sell separately is the Siphyy Knowledge Pack: curated case bases, indexed OEM manuals, calibrated detection thresholds, and the enterprise dashboard. You can use the OSS framework without ever paying us a cent.
Writing your own adapter
The whole point of the canonical schema is that you don't have to wait for us to support your telematics provider. Subclass TelematicsAdapter in ~50 lines and you're integrated. See docs/writing-adapters.md — TrakzeeAdapter is the reference implementation.
Project status
Alpha. The canonical schema, the Trakzee adapter, the FuelSiphonageDetector, and the FuelAnomalyAgent are stable today. Additional provider adapters, additional detectors and agents, the CLI, and the storage backend are still in active development — track CHANGELOG.md for what lands when. Pin to a specific version until 1.0.
License
Apache 2.0. See LICENSE.
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 siphyy-0.1.0.tar.gz.
File metadata
- Download URL: siphyy-0.1.0.tar.gz
- Upload date:
- Size: 277.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2806b2586599f7797774e17f789eedfed5b23eaccb5eafe8c5bb443e0d46e6a9
|
|
| MD5 |
00acf6f5f45cf1a66c0d05d2a088b98f
|
|
| BLAKE2b-256 |
5d36b9da002015d6b21381e96ede6a5bbac48e25aef09298e70cad61dd4ddf94
|
Provenance
The following attestation bundles were made for siphyy-0.1.0.tar.gz:
Publisher:
release.yml on surajit003/siphyy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
siphyy-0.1.0.tar.gz -
Subject digest:
2806b2586599f7797774e17f789eedfed5b23eaccb5eafe8c5bb443e0d46e6a9 - Sigstore transparency entry: 1535708525
- Sigstore integration time:
-
Permalink:
surajit003/siphyy@3d68ef7f2a95d042acb8e7af9830fab1aea66c58 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/surajit003
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3d68ef7f2a95d042acb8e7af9830fab1aea66c58 -
Trigger Event:
push
-
Statement type:
File details
Details for the file siphyy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: siphyy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 45.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1c9aa0e86f5d44137fff24dea35cd25ef151a50487b6cbf286319005718766f
|
|
| MD5 |
b0fdce15580d42365512241815f47255
|
|
| BLAKE2b-256 |
1358eb0f3a7b5bc614ce8c784132c0b1b00b58edd1a67c1b1f50f4c26fea395a
|
Provenance
The following attestation bundles were made for siphyy-0.1.0-py3-none-any.whl:
Publisher:
release.yml on surajit003/siphyy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
siphyy-0.1.0-py3-none-any.whl -
Subject digest:
d1c9aa0e86f5d44137fff24dea35cd25ef151a50487b6cbf286319005718766f - Sigstore transparency entry: 1535708600
- Sigstore integration time:
-
Permalink:
surajit003/siphyy@3d68ef7f2a95d042acb8e7af9830fab1aea66c58 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/surajit003
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3d68ef7f2a95d042acb8e7af9830fab1aea66c58 -
Trigger Event:
push
-
Statement type: