Current section
Files
Jump to
Current section
Files
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