LemonAgent.TextGeneration (lemon_agent v0.1.0)

View Source

Lightweight text completion bridge for apps that depend on agent_core.

Keeps direct LemonAi.* calls inside agent_core, which lets callers stay within architecture boundaries.

Summary

Types

option()

@type option() ::
  {:system_prompt, String.t() | nil}
  | {:complete_opts, map() | keyword()}
  | {:model_registry, module()}
  | {:context_module, module()}
  | {:ai_module, module()}

Options for complete_text/4.

Functions

complete_text(provider, model_id, prompt, opts \\ [])

@spec complete_text(atom(), String.t(), String.t(), [option()]) ::
  {:ok, String.t()} | {:error, term()}