Packages

Recursive LLM code execution engine for Elixir — give an LLM a stateful REPL

Current section

Files

Jump to
crucible_rlm lib crucible.ex
Raw

lib/crucible.ex

defmodule Crucible do
@moduledoc """
Public API for Recursive Language Model completions.
"""
alias Crucible.Loop
@spec completion(String.t(), String.t(), keyword()) :: Loop.run_result()
def completion(question, prompt, opts \\ [])
when is_binary(question) and is_binary(prompt) and is_list(opts) do
Loop.run(question, prompt, opts)
end
end