Jido.Chat.Concurrency (Jido Chat v1.0.0)

Copy Markdown View Source

Chat-level overlapping-message concurrency configuration.

Summary

Functions

Creates a normalized concurrency config.

Returns the schema for concurrency configuration.

Types

pending_entry()

@type pending_entry() :: %{owner: String.t(), strategy: strategy(), metadata: map()}

strategy()

@type strategy() :: :reject | :queue | :debounce | :concurrent

t()

@type t() :: %Jido.Chat.Concurrency{
  metadata: map(),
  strategy: :reject | :queue | :debounce | :concurrent
}

Functions

new(config)

@spec new(t() | map() | keyword()) :: t()

Creates a normalized concurrency config.

schema()

Returns the schema for concurrency configuration.