Utilities for evaluating Elixir code snippets with captured outputs.
The module keeps the original execute/2 map-returning API while adding the
upstream-style execute_code/2 API with timeout support, captured stdout and
stderr, code hashes, variable capture, and optional entry-point invocation.
Summary
Functions
Execute Elixir code and return the legacy map result.
Execute Elixir code and return a rich structured result.
Return a deterministic hash for normalized source code.
Convert side-info values into serializable values suitable for prompts.
Types
Functions
Execute Elixir code and return the legacy map result.
@spec execute_code( String.t(), keyword() ) :: GEPA.CodeExecution.Result.t()
Execute Elixir code and return a rich structured result.
@spec get_code_hash(String.t(), pos_integer()) :: String.t()
Return a deterministic hash for normalized source code.
Convert side-info values into serializable values suitable for prompts.