API Reference Anvil v#0.1.1

View Source

Modules

Labeling queue library for managing human labeling workflows.

Plug router exposing /v1 IR endpoints for assignments, labels, schemas, queues, samples, and datasets.

Boots the Anvil /v1 Plug router via Plug.Cowboy.

Repo-backed persistence for the /v1 IR API.

Inter-rater agreement metrics for measuring labeler consistency.

Incrementally accumulates agreement statistics for online computation.

Cohen's kappa for measuring agreement between two raters.

Fleiss' kappa for measuring agreement among multiple raters.

Krippendorff's alpha for measuring agreement with support for missing data.

Represents a labeling task assigned to a specific labeler.

Access Control List (ACL) management for queue memberships.

Represents a labeler's membership in a queue with specific role and permissions.

OIDC (OpenID Connect) authentication behaviour for Anvil.

Standard OIDC claims extracted from ID token.

Labeler identity created from OIDC authentication.

Mock OIDC adapter for testing.

Role definitions and hierarchy for Anvil access control.

Time-limited signed URLs for secure asset access.

Multi-tenant isolation utilities for Anvil.

Export labeled data in various formats with deterministic lineage tracking.

CSV export adapter with deterministic ordering and lineage tracking.

JSONL (JSON Lines) export adapter with deterministic ordering and lineage tracking.

Export manifest for tracking dataset lineage and reproducibility.

Abstract interface for fetching samples from Forge.

Caching wrapper for ForgeBridge backends.

Direct database access implementation for ForgeBridge.

HTTP API client implementation for ForgeBridge.

Mock implementation of ForgeBridge for testing.

Data Transfer Object for samples fetched from Forge.

Represents a label submitted by a labeler for an assignment.

PII (Personally Identifiable Information) field annotation handling.

Labeler pseudonymization for privacy-preserving exports.

Redaction strategies for PII fields during export.

Retention policy enforcement for PII fields.

GenServer that manages a labeling queue.

Behaviour for queue assignment policies.

Composite policy for chaining multiple policies together.

Random assignment policy.

Redundancy assignment policy.

Round-robin assignment policy.

Weighted expertise assignment policy.

Ecto repository for Anvil's Postgres storage adapter.

Defines the structure and validation rules for labels.

Ecto schema for labeling assignments.

Ecto schema for audit trail.

Represents a field in a label schema.

Ecto schema for submitted labels.

Ecto schema for labelers (annotators).

Forward-only migrations between schema versions.

Ecto schema for labeling queues.

Ecto schema for sample references.

Ecto schema for label schema versions.

Behaviour for storage backends.

ETS-based storage implementation for testing and development.

Postgres storage adapter for Anvil.

Telemetry integration for Anvil labeling system.

Alerting hooks for critical Anvil telemetry events.

TelemetryMetrics definitions for Anvil.

Background job worker that recomputes agreement metrics for labeled samples.

Background job worker that enforces data retention policies.

Background job worker that checks for timed-out assignments and requeues them.