Skip to content

smelt.agent

Availability: Everywhere, including headless mode.

Agent-facing prompt customization for Lua plugins.

smelt.agent.add_system_prompt

fun(text: string): smelt.Reg

Types: smelt.Reg

Append concise guidance to the system prompt while this Lua runtime is active. Intended for plugins that register tools needing extra usage policy. Returns a Reg whose :remove() removes the fragment.