Components

Browse all ElectriPy Studio components. 7 categories, 30+ focused building blocks for production AI systems.

Core

5 components

Foundational building blocks and utilities

Config Loader

Type-safe configuration loading with env, file, and override support.

configenvtyped

Environment Manager

Structured environment variable resolution with validation.

envvalidation

Type Utilities

Runtime type guards, coercions, and assertion helpers.

typesguardsruntime

Error Handling

Structured error classes, result types, and error boundary helpers.

errorsresultstructured

Base Client

HTTP client foundation with retries, headers, and auth hooks.

httpclientauth

Concurrency & Resilience

5 components

Resilience primitives for production workloads

Circuit Breaker

Trip-and-recover circuit breaker for external service calls.

resiliencecircuit-breakerasync

Async Task Runner

Bounded concurrency task executor with backpressure and cancellation.

asyncconcurrencytasks

Rate Limiter

Token-bucket and sliding-window rate limiters for API calls.

rate-limitthrottleapi

Retry Utilities

Configurable retry logic with jitter, backoff, and predicate filtering.

retrybackoffresilience

Timeout Manager

Deadline propagation and timeout enforcement across async boundaries.

timeoutdeadlineasync

AI / LLM Infrastructure

7 components

Provider-agnostic LLM infrastructure

LLM Gateway

Unified interface for LLM providers with policy hooks and telemetry.

llmgatewayproviders

Provider Adapters

Adapters for OpenAI, Anthropic, Ollama, and generic HTTP-JSON endpoints.

openaianthropicollamaadapters

Structured Output Engine

Force structured JSON output from any LLM with schema validation.

structuredjsonschema

Fallback Chain

Automatic provider fallback with configurable priority and conditions.

fallbackresilienceproviders

Batch Complete

Efficient batch completion with concurrency control and result aggregation.

batchasyncefficiency

LLM Caching

Semantic and exact-match caching for LLM responses.

cacheperformancecost

Replay Tape

Record and replay LLM interactions for deterministic testing.

testingreplaydeterministic

Safety / Policy / Validation

5 components

Policy seams, guardrails, and validation utilities

Policy Gateway

Pre/post request policy hooks with block, warn, and transform actions.

policyguardrailshooks

Sensitive Data Scanner

Detect and redact PII, credentials, and sensitive patterns in prompts.

piiredactionsafety

JSON Repair

Heuristic JSON repair for malformed LLM output.

jsonrepairparsing

Prompt Fingerprint

Hash and track prompt templates for lineage and deduplication.

fingerprinttrackingdedup

Input Validator

Schema-based input validation with structured error reporting.

validationschemaerrors

RAG / Evaluation

4 components

Retrieval-augmented generation evaluation tooling

RAG Evaluation Runner

Run evaluation suites against RAG pipelines with configurable scorers.

ragevalpipeline

Eval Assertions

Assertion helpers for LLM output quality checks.

assertionstestingquality

Retrieval Scorer

Precision/recall scoring for retrieval relevance.

scoringretrievalmetrics

Answer Quality Evaluator

LLM-as-judge evaluation for answer correctness and coherence.

qualityjudgecoherence

Telemetry / Observability

4 components

Observability and cost tracking for AI workloads

AI Telemetry

Structured telemetry events for LLM requests, latency, and outcomes.

telemetryobservabilityevents

Cost Ledger

Token-level cost tracking across providers and models.

costtokensbudget

Request Logger

Structured request/response logging with redaction and sampling.

loggingstructuredsampling

Trace Exporter

Export traces to OpenTelemetry-compatible backends.

oteltracingexport

CLI Tooling

4 components

Command-line developer experience

CLI Framework

Typed argument parsing, subcommands, and help generation.

cliargstyped

Project Scaffolder

Generate new ElectriPy project skeletons with config and structure.

scaffoldtemplategenerator

Config Inspector

Inspect and validate project configuration from the terminal.

configinspectdebug

Dev Commands

Local dev helpers: run, watch, reset, and fixture loading.

devwatchfixtures