Cyclium.Synthesizer.Interactive.LLM behaviour (Cyclium v0.1.12)

Copy Markdown View Source

Behaviour for LLM clients used by the Interactive synthesizer.

Summary

Callbacks

chat(system_prompt, user_message, opts)

@callback chat(system_prompt :: String.t(), user_message :: String.t(), opts :: keyword()) ::
  {:ok, String.t()} | {:error, :no_api_key} | {:error, {atom(), term()}}