MingaAgent.ModelCandidate (Minga v0.1.0)

Copy Markdown View Source

Typed picker candidate for one exact executable model route.

Summary

Functions

Builds a candidate and derives favorite/current flags from stable selection ids.

Types

t()

@type t() :: %MingaAgent.ModelCandidate{
  current: boolean(),
  favorite: boolean(),
  selection: MingaAgent.ModelSelection.t()
}

Functions

new(selection, favorites, current_id)

@spec new(MingaAgent.ModelSelection.t(), [String.t()], String.t() | nil) :: t()

Builds a candidate and derives favorite/current flags from stable selection ids.