Prompt Engineering
Why Smarter. Most prompt engineering courses are taught in a consumer chat app, where students can change only the words they type. In Smarter, students change everything that shapes a model’s behavior, by editing a short YAML manifest and with no code: the system prompt, the provider, the model, the temperature and the token limit, the knowledge and tools the model may use, the guardrails around it, and how its chat looks. Every one of those settings is defined, with a description, in a Pydantic model, so a misspelled key is an error that says why, not a silent no-op.
Students see the result straight away in the prompt engineering workbench, whose Console shows, beside the chat, the configuration, every request sent to the model, every tool call, which plugins were selected, and the server’s logs. The same prompt can be tried against several providers and models by changing two lines, and Smarter records the tokens and the cost of every request, so a comparison is measured, not guessed.
Students start from real examples, not toy ones. Every installation ships with nineteen built-in LLMClients, from the one-line simple assistant to customer_support, a complete support agent with a persona, refusals, a skill, a tool and four guardrails; twenty sample plugins; and eighteen built-in guardrails. Smarter also makes visible a point that most courses miss: a tool is used only after two decisions. Smarter selects a plugin when the prompt matches one of its search terms, exactly, with a typo or as a synonym, and only then does the model decide, from the plugin’s description, whether to call it.
What the course covers. How a language model reads a prompt: tokens, the context window, and system and user messages; the anatomy of a good system prompt, from persona to refusals; few-shot examples, delimiters and structured output; testing an assistant systematically, and scoring answers with a rubric and an LLM-as-judge; temperature, token limits, models and cost; grounding with Static and Skill plugins and with retrieval from a Vectorstore; tools, and how plugin selection works; prompt injection, jailbreaks and guardrails; multi-step workflows with an Orchestrator; and designing, branding and deploying an assistant for a real audience.
Look at.
llmclient/data/llm-clients/, the built-in LLMClients, especially
simple,customer_supportandweather.plugin/data/sample-plugins/, the sample Static, Skill, Websearch and ImageSearch plugins.
guardrail/data/guardrails/, the built-in guardrails, each a short manifest that a non-programmer can read.
Each course plan lists every manifest and file that it uses under Smarter in the Source Code.
Read. Smarter LLM Client, Smarter Plugin, Natural Language Processing (NLP), Styling Your LLMClient’s Chat, Smarter Guardrail, Smarter API Manifests (SAM).
Exercises.
Start from the built-in
simpleLLMClient. Rewrite itsspec.config.prompt.defaultSystemRoleto give it a persona and a narrow job, then write test prompts that it should answer and prompts that it should decline.Run the same ten prompts at
defaultTemperature0 and 1, and on two models. Compare the answers, the tokens used and the cost.Give an LLMClient knowledge with a SkillPlugin or a Static Plugin, and the ability to act with a Websearch Plugin or an API Plugin. Use the Console to see when Smarter selects the plugin and when the model calls it, and how the search terms and the description each influence that.
Try to make an assistant go off topic, then add the built-in
off_topic_inputguardrail and try again.Design an application for a real client (a campus office, a club, a local business), brand its chat with
spec.config.styles, and present it.
Course plans. Three complete, ready-to-teach plans, each with a schedule, graded assignments and rubrics, two capstone projects, recommended texts, further study and technical prerequisites. See Course Formats and Grading for what the formats have in common.
See the Smarter Instructor Guide to install Smarter and set up a class.