Packages

A Gleam library for building and orchestrating agents on the BEAM.

Current section

Files

Jump to
pig src pig@run_error.erl
Raw

src/pig@run_error.erl

-module(pig@run_error).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/pig/run_error.gleam").
-export_type([run_error/0]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
?MODULEDOC(" Errors returned while running an agent.\n").
-type run_error() :: {inference, pig_protocol@error:ai_error()} |
{session, pig@session_store:session_error()} |
{runtime, binary()}.