Packages
baml_elixir
1.0.0-pre.27
1.0.0-pre.27
1.0.0-pre.26
1.0.0-pre.25
1.0.0-pre.24
1.0.0-pre.23
1.0.0-pre.22
1.0.0-pre.21
1.0.0-pre.20
1.0.0-pre.19
1.0.0-pre.18
1.0.0-pre.17
1.0.0-pre.16
1.0.0-pre.15
1.0.0-pre.14
1.0.0-pre.13
1.0.0-pre.12
1.0.0-pre.11
1.0.0-pre.10
1.0.0-pre.9
1.0.0-pre.8
1.0.0-pre.7
1.0.0-pre.6
1.0.0-pre.5
retired
1.0.0-pre.4
1.0.0-pre.3
1.0.0-pre.2
1.0.0-pre.1
0.2.0
0.1.0
Call BAML functions from Elixir.
Current section
Files
Jump to
Current section
Files
lib/baml_elixir/native_behaviour.ex
defmodule BamlElixir.NativeBehaviour do
@moduledoc """
Behaviour for the Native NIF module, enabling mocking in tests.
"""
@callback create_tripwire() :: reference()
@callback abort_tripwire(reference()) :: :ok
@callback stream(
pid(),
reference(),
reference(),
String.t(),
map(),
String.t(),
list(),
map() | nil,
list() | nil
) :: any()
@callback call(String.t(), map(), String.t(), list(), map() | nil, list() | nil) ::
{:ok, any()} | {:error, String.t()}
end