ArchAstro.Types.AgentUpgradeFieldChange (archastro v0.2.0)

Copy Markdown

One field-level diff entry within an agent upgrade change, describing how a single field will change. baseline and locally_edited are populated only for agent_base entries; child resource entries (tools, routines, skills, computers) carry only field, old, and new.

Summary

Types

t()

@type t() :: %ArchAstro.Types.AgentUpgradeFieldChange{
  baseline: ArchAstro.JSON.t() | ArchAstro.Unset.t(),
  field: String.t(),
  locally_edited: boolean() | ArchAstro.Unset.t(),
  new: ArchAstro.JSON.t() | ArchAstro.Unset.t(),
  old: ArchAstro.JSON.t() | ArchAstro.Unset.t()
}

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()