This release introduces a single-file Phoenix LiveView example that can be run with elixir examples/phoenix.exs
.
In addition, this release removes the use of Registry
, adds better error handling, and improves GenServer
usage, including better child specs.
- Added
examples/phoenix.exs
example - Added
Agens.Prefixes
- Added pass-through
args
andfinalize
function toAgens.Serving
- Added
{:job_error, {job.name, step_index}, {:error, reason | exception}}
event toAgens.Job
- Added child specs to
Agens
andAgens.Supervisor
- Added
{:error, :job_already_running}
when callingAgens.Job.run/2
on running job - Added
{:error, :input_required}
when callingMessage.send/1
with emptyinput
- Removed
Registry
usage andregistry
configuration option - Changed
prompts
toprefixes
onAgens.Serving.Config
- Added
input
to@enforce_keys
and removednil
as acceptedinput
type inAgens.Message
- Removed
restart: :transient
fromAgens.Serving
andAgens.Agent
child specs
This release removes application environment configuration and moves to an opts-based configuration. See README.md for more info.
- Configure
Agens
viaSupervisor
opts instead ofApplication
environment - Add
Agens.Agent.get_config/1
- Add
Agens.Serving.get_config/1
- Support sending
Agens.Message
withoutAgens.Agent
- Override default prompt prefixes with
Agens.Serving
Agens.Job.get_config/1
now wraps return value with:ok
tuple:{:ok, Agens.Job.Config.t()}
- Replaced
module() | Nx.Serving.t()
withatom()
inAgens.Agent.Config.t()
Initial release