Jido.Messaging.MsgContext.Normalizer (Jido Messaging v1.0.0)

Copy Markdown View Source

Command and mention normalization for MsgContext.

Summary

Functions

Enriches an existing MsgContext with normalized mention and command metadata.

Types

opts()

@type opts() :: keyword()

Functions

normalize(msg_context, incoming, opts \\ [])

Enriches an existing MsgContext with normalized mention and command metadata.

Options

  • :mention_targets - IDs/usernames used to compute was_mentioned
  • :command_prefixes - parser prefix candidates
  • :command_max_text_bytes - parser max text size
  • :mentions_max_text_bytes - max text size for adapter mention parsing