Skip to main content

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.

CI License: Apache 2.0 Python 3.14+ Live demo on HuggingFace Docs

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_KEY in env → uses OpenAILLMClient (real call against gpt-4o-mini)
  • ANTHROPIC_API_KEY in env → uses AnthropicLLMClient (real call against claude-haiku-4-5)
  • Neither → uses MockLLMClient with 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.mdTrakzeeAdapter 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

siphyy-0.1.0.tar.gz (277.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

siphyy-0.1.0-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

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

Hashes for siphyy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2806b2586599f7797774e17f789eedfed5b23eaccb5eafe8c5bb443e0d46e6a9
MD5 00acf6f5f45cf1a66c0d05d2a088b98f
BLAKE2b-256 5d36b9da002015d6b21381e96ede6a5bbac48e25aef09298e70cad61dd4ddf94

See more details on using hashes here.

Provenance

The following attestation bundles were made for siphyy-0.1.0.tar.gz:

Publisher: release.yml on surajit003/siphyy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for siphyy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1c9aa0e86f5d44137fff24dea35cd25ef151a50487b6cbf286319005718766f
MD5 b0fdce15580d42365512241815f47255
BLAKE2b-256 1358eb0f3a7b5bc614ce8c784132c0b1b00b58edd1a67c1b1f50f4c26fea395a

See more details on using hashes here.

Provenance

The following attestation bundles were made for siphyy-0.1.0-py3-none-any.whl:

Publisher: release.yml on surajit003/siphyy

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