Dsxir.Errors.Framework.CodeExecutionError exception (dsxir v0.4.0)

Copy Markdown

Raised by Dsxir.Predictor.ProgramOfThought / Dsxir.Predictor.CodeAct when max_iters is exhausted without a single successful sandbox run. type is the Dune failure type of the last attempt (:restricted | :memory | :exception | :parsing | :timeout) or :max_iters when attempts failed for differing reasons.

Summary

Functions

exception(msg)

@spec exception(opts :: Keyword.t()) :: %Dsxir.Errors.Framework.CodeExecutionError{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  code: term(),
  message: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  trajectory: term(),
  type: term(),
  vars: term()
}

Create an Elixir.Dsxir.Errors.Framework.CodeExecutionError without raising it.

Keys

  • :type
  • :message
  • :code
  • :trajectory