GenAI Design PatternsBuilding on Foundational ModelsPrompt and ContextUsing the Model Provider’s APIUsing an LLM-Agnostic FrameworkRunning Your Model LocallyHow Foundational Models Are CreatedThe Landscape of Foundational ModelsAgentic AIAutonomyCharacteristics of AgentsFine-Grained ControlLogitsTemperatureTop-K SamplingNucleus SamplingBeam SearchIn-Context LearningZero-Shot LearningFew-Shot LearningPost-TrainingPost-Training MethodsFine-Tuning a Frontier ModelFine-Tuning an Open-Weight ModelConsiderationsThe Organization of the Rest of the Book