GEPA.LLM.Tool (GEPA v0.3.0)

Copy Markdown View Source

GEPA-facing portable tool specification.

The first shipping slice uses this for ReqLLM conversion only. ASM tool-loop support remains capability-gated until the shared CLI tool surface exists.

Summary

Types

callback()

@type callback() :: (map(), map() -> {:ok, term()} | {:error, term()})

t()

@type t() :: %GEPA.LLM.Tool{
  description: String.t(),
  input_schema: map() | keyword(),
  metadata: map(),
  name: String.t(),
  run: callback() | nil
}

Functions

new(opts)

@spec new(keyword()) :: t()