Tune.Error.Output.Rejected exception (Tune v0.5.0)

Copy Markdown View Source

A ReqLLM response is not an acceptable completed reply.

reason is one of :response_error, :refusal, :finish_reason, or :repaired. The original response is retained.

Summary

Functions

exception(msg)

@spec exception(opts :: Keyword.t()) :: %Tune.Error.Output.Rejected{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  message: term(),
  path: term(),
  reason: term(),
  response: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.Tune.Error.Output.Rejected without raising it.

Keys

  • :reason
  • :message
  • :response