Tinkex.Types.ParsedCheckpointTinkerPath (Tinkex v0.3.1)
View SourceParsed representation of a checkpoint tinker path.
Provides a reusable parser with consistent validation for CLI and REST helpers.
Summary
Functions
Convert the parsed checkpoint to the REST path segment (weights/<id> etc.).
Parse a tinker path into its components.
Types
@type checkpoint_type() :: String.t()
@type t() :: %Tinkex.Types.ParsedCheckpointTinkerPath{ checkpoint_id: String.t(), checkpoint_type: checkpoint_type(), tinker_path: String.t(), training_run_id: String.t() }
Functions
Convert the parsed checkpoint to the REST path segment (weights/<id> etc.).
@spec from_tinker_path(String.t()) :: {:ok, t()} | {:error, Tinkex.Error.t()}
Parse a tinker path into its components.