API Reference Botica v#2.2.0

Copy Markdown View Source

Modules

Botica provides environment diagnostics, health checks, and feature flags.

Alert hooks for repeated check failures and recovery.

Behaviour for alert subscribers. See Botica.Alerts.

OTP application for Botica.

Shared command runner for the batteries.

Predefined health check for disk space usage.

Llama-server lifecycle management — used by any project that needs to download, configure, launch, and health-check a llama-server process running a specific GGUF model.

Downloads a precompiled llama-server binary into a stable install directory (~/models/llama-server by default, override with LLAMA_INSTALL_DIR) so subsequent runs don't re-download.

Predefined health check for system memory usage.

Predefined health check for PostgreSQL database connectivity.

Predefined health check for Redis cache server.

Behaviour for defining health checks.

Groups health checks into a unit that runs with a shared timeout.

Logic for building and processing check results.

Minimal HTTP dashboard for botica check results.

Environment diagnostics and auto-repair — returns structured results.

Formats Botica.Flags registry data into human-readable summaries.

Result aggregation and reporting for Botica.Doctor.

Feature flags for Elixir with deterministic per-entity rollouts.

Configuration source for feature flags. Provides defaults read from the application environment, allowing runtime overrides.

Generates documentation for the currently registered flags.

Struct representing a single feature flag.

Behaviour for persisting feature flags outside of the ETS cache.

Disk-backed persistence adapter for feature flags.

Serializes persistence writes to the configured adapter.

Gradual rollout evaluation for feature flags.

ETS-backed storage for Botica.Flags.Flag structs.

Auto-repair logic for health checks that failed.

Exports check results to observability backends.

Runs a single health check in an isolated process with timeout and monitoring.

Executes health checks in parallel with timeout support.

Sorts and sequences checks based on their priority and dependencies.

Runs check groups on a schedule.

Shared types and data structures for Botica.

Shared validation helpers for Botica configuration.