Current section

Files

Jump to
text_chunker lib chunker strategies behaviour.ex
Raw

lib/chunker/strategies/behaviour.ex

defmodule Chunker.ChunkerBehaviour do
@moduledoc """
Defines the contract that must be implemented for all text splitting strategies.
"""
alias Chunker.Chunk
@callback split(text :: binary(), opts :: [keyword()]) :: [Chunk.t()]
end