Black Friday Deals For Authors Are On Now!

Leanpub Header

Skip to main content

Frontier Model Engineering

Bought separately

$116

Minimum price

$39.00

$59.00

You pay

Author earns

$

Also available for 2 book credits with a Reader Membership

These books have a total suggested price of $116. Get them now for only $39.00!
About

About

About the Bundle

Books

About the Books

Engineering with Claude Opus 5.5

Engineering with Claude Opus 5.5

Claude Opus 5.5 is the first model in Anthropic's Claude 5.5 family, and it changes what you build on Monday: it performs at the level of the previous frontier model at roughly 40% lower cost, with structured-output support, agentic tooling, and a one-million-token context window. This book is the working manual for teams shipping on it.

You start with the API contract itself — the Messages API, the four breaking changes (thinking cannot be disabled, forced `tool_choice` is rejected, thinking blocks are prefix-locked, and text between tool calls arrives inside thinking blocks), async and streaming, and a production client factory. From there: model selection via a hypothesis ladder and effort sweeps; tool use with Pydantic structured outputs, strict tool use, and MCP; retrieval architecture including Contextual Retrieval with its documented numbers and just-in-time context; agentic workflows (chaining, routing, parallel, orchestrator, evaluator-optimizer) and a production agent loop; evaluation harnesses with three grader types plus OpenTelemetry tracing and Prometheus metrics; prompt-injection defense with groundedness checks, tool-layer authorization, sandboxing, human review queues, and red-teaming; cost and latency optimization across five levers with prompt caching; testing and deployment with GitHub Actions CI, containerization, secrets, and a model upgrade procedure.

The capstone assembles PolicyLens, a complete FastAPI policy-triage service with citations, review queue, caching, and incident runbooks. Chapter 12 is a reusable reference architecture; Chapter 13 is a launch-and-operations checklist. Every chapter has runnable walkthroughs, real failure cases, debugging guidance, exercises, and a recap checklist.

Engineering with Gemini 4 Carbon

Engineering with Gemini 4 Carbon

Gemini 4 Carbon is Google's reasoning model built for sustained agentic work: long-running tool loops, codebase audits, dense document synthesis. Those benchmark numbers will not transfer to your application unless you engineer for them, and that engineering is the subject of this book.

The book starts with the model itself — where Carbon sits relative to Argon and Hydrogen, what the Interactions API gives you (server-side conversation state via `previous_interaction_id`, observable execution steps, background execution), and how the Gemini Developer API and the Gemini platform API (Vertex AI successor, renamed Gemini Enterprise Agent Platform) differ by a single client flag rather than a rewrite.

From there you build a production-shaped Python project: `pyproject.toml`, one-source-of-truth configuration, a client factory, an error taxonomy, a request wrapper, structured logging, and a smoke script with secret handling. You then learn the three thinking levels (`low`, `medium`, `high`), the output-token budget trap when thinking exceeds your budget, and how to measure the quality difference between levels rather than assume it.

The middle of the book covers the working surfaces: prompt design as structure, implicit context caching economics (the 4,096-token minimum and the 2,050-token rule that governs agent loops), JSON Schema and Pydantic structured output, function calling with tool-design rules, parallel tool execution and errors-as-data, then retrieval — Google Search grounding, File Search RAG, URL context — and verifying citations.

The production half covers the Agent Development Kit and its eight multi-agent patterns, evaluation harnesses using trajectory metrics (exact match, in-order match, precision, recall), prompt-injection defence and red-team suites, cost and latency across Batch/Flex/Priority tiers, deployment to Agent Runtime, Cloud Run, and GKE, four end-to-end walkthroughs, a capstone production incident investigator, and a production-readiness checklist with a 90-day roadmap.

Engineering with Astra GPT-6

Engineering with Astra GPT-6

Astra GPT-6 is expensive, always bills reasoning tokens, asks questions when it should act, and is capable enough to be dangerous in an agent loop. This book is the engineering manual for turning that capability into systems you can depend on.

You will start with API fluency: where Astra sits in the GPT-6 family (`gpt-6-astra`, `gpt-6.1-sol`, `gpt-6.1-terra`, `gpt-6-luna`), the Responses API versus Chat Completions, and why the 272K token surcharge cliff quietly doubles your bill. Then you will write prompts as specifications, budget context deliberately, and select few-shot examples by measurement rather than intuition.

The middle chapters cover the production architecture: hybrid retrieval with BM25 fusion, Contextual Retrieval, and reranking; tool schemas that work on the first try; error handling and confirmation flows that never strand the model; agent loops with durable execution on Postgres, human-in-the-loop approval, and multi-agent delegation; and Structured Outputs for deterministic downstream interfaces.

The back half is operational discipline: an evaluation architecture with ground truth sets and a calibrated LLM judge, OpenTelemetry GenAI tracing, cost and latency levers including the cache break-even at 78.3%, CaMeL and dual-LLM defenses against prompt injection, an OWASP LLM Top 10 checklist, an adapted test pyramid with mocked models and prompt snapshots, retries, circuit breakers, and failover across providers. You finish with governance — system cards, bias testing, and post-market monitoring — and a full reference application built from requirement to production, plus a week-by-week rollout roadmap and production-readiness checklist.

Prompt Engineering 2026

Prompt Engineering 2026

Prompt engineering didn't disappear when models got smarter, it grew up. Prompt Engineering for 2026 is the practical, end to end guide for engineers, product builders, researchers, and technically curious leaders who need reliable, safe, and cost effective ways to work with large language models in production.


Across twelve in depth chapters, you'll learn how modern frontier models actually process instructions, how to build prompts that survive contact with real traffic, and how to orchestrate tool using agents that call APIs, query databases, and take real actions. You'll move past folklore and "this works on Tuesdays" intuition into mechanism: why a technique works, what about a model's training makes it brittle, and which approaches transfer across model families.

The book covers the full stack of the discipline: classical techniques like few shot prompting and chain of thought, structured outputs and tool use, retrieval augmented generation, multi turn agent orchestration, systematic evaluation, cost and latency economics, and the 2026 landscape of prompt injection defenses and multimodal prompting. A closing section on team practice shows how to keep prompt work from rotting as your organization scales.

Code is a first class citizen throughout, with runnable examples targeting the OpenAI, Anthropic, and Google APIs. Whether you're migrating from earlier prompt patterns or building agentic systems from scratch, this book gives you the mental models, templates, and working code to ship with confidence.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub