CommBus.Entry (CommBus v0.1.0)

Copy Markdown View Source

Injectable context entry.

Summary

Types

match_mode()

@type match_mode() :: :any | :all

match_strategy()

@type match_strategy() :: :exact | :fuzzy | :semantic

mode()

@type mode() :: :constant | :triggered

section()

@type section() :: :system | :pre_history | :history | :post_history

t()

@type t() :: %CommBus.Entry{
  content: String.t(),
  cooldown_turns: non_neg_integer() | nil,
  enabled: boolean(),
  exclude_keywords: [String.t()],
  fuzzy_threshold: number() | nil,
  id: term(),
  keywords: [String.t()],
  match_mode: match_mode(),
  match_strategy: match_strategy(),
  match_threshold: number() | nil,
  metadata: map(),
  mode: mode(),
  priority: integer(),
  scan_depth: pos_integer() | nil,
  section: section(),
  semantic_hints: [String.t()],
  semantic_threshold: number() | nil,
  token_count: non_neg_integer() | nil,
  weight: integer()
}