Forge.API.State (Forge v0.1.1)
View SourceRepo-backed storage for the Forge /v1 IR API.
Summary
Functions
@spec get_dataset(String.t(), String.t() | nil) :: {:ok, LabelingIR.Dataset.t()} | :error
@spec get_sample(String.t(), String.t() | nil) :: {:ok, LabelingIR.Sample.t()} | :error
@spec put_dataset(LabelingIR.Dataset.t()) :: :ok | {:error, term()}
@spec put_sample(LabelingIR.Sample.t()) :: :ok | {:error, term()}
@spec reset!() :: :ok