class LittleGhost::AgentBuilder
Builds an Agent definition from declarations made at runtime.
agent = LittleGhost::AgentBuilder.new(id: "customer_support") agent.model "openrouter:openai/gpt-5.6-luna" agent.system_prompt "Answer customer questions clearly." agent.ask("Where is my order?")
It accepts the same configuration calls as an Agent class. Changing the builder affects future builds without changing Agents already built.