Pi.Eval (pi_bridge v0.6.22)

Copy Markdown View Source

Runs bounded Elixir evals inside the project BEAM.

Summary

Functions

Returns binding metadata for the current eval process.

Returns binding metadata for a stateful eval session.

Schedules forget when called from inside eval.

Forgets bindings in a stateful eval session.

Schedules reset when called from inside eval.

Clears a stateful eval session.

Functions

bindings()

Returns binding metadata for the current eval process.

bindings(session_id)

Returns binding metadata for a stateful eval session.

forget(names)

Schedules forget when called from inside eval.

forget(names, session_id)

Forgets bindings in a stateful eval session.

reset()

Schedules reset when called from inside eval.

reset(session_id)

Clears a stateful eval session.

run(code, opts \\ [])

run_structured(code, opts \\ [])

sandbox(code, opts \\ [])