MingaEditor.Agent.SemanticUI.Entry (Minga v0.1.0)

Copy Markdown View Source

Source-owned semantic agent UI contribution.

The payload is an existing Minga.RenderModel.UI.* value, or a list of existing extension-panel content values. This keeps agent UI contribution data on the same semantic render-model path used by built-in GUI/TUI surfaces.

Summary

Types

Existing render-model value stored by the registry.

Source that owns the contribution.

Semantic surface where the contribution is consumed.

t()

Functions

Builds an entry owned by source.

Updates the cached render-model payload and optional render-model action metadata.

Types

payload()

Existing render-model value stored by the registry.

source()

Source that owns the contribution.

surface()

@type surface() :: :transcript_enrichment | :dashboard_section | :panel

Semantic surface where the contribution is consumed.

t()

@type t() :: %MingaEditor.Agent.SemanticUI.Entry{
  actions: [Minga.RenderModel.UI.Action.t()],
  id: String.t(),
  payload: payload(),
  priority: integer(),
  source: source(),
  surface: surface(),
  target: term()
}

Functions

new(source, entry)

@spec new(source(), t() | map() | keyword()) :: {:ok, t()} | {:error, term()}

Builds an entry owned by source.

publish(entry, new_payload, actions \\ nil)

@spec publish(
  t(),
  payload(),
  [Minga.RenderModel.UI.Action.t() | map() | keyword()] | nil
) ::
  {:ok, t()} | {:error, term()}

Updates the cached render-model payload and optional render-model action metadata.