AI Appliances

4 min read Original article ↗

Build & Deploy Autonomous AI Agents and Agencies in YAML

You pay

Author earns

About

Most AI tooling is built for the demo, not the shift. You get a working prototype, someone wants to put it in production, and suddenly you're asking: how do I validate inputs? How do

I retry a flaky API? How do I deploy this without rewriting it? How do I switch models without touching every file?

AI Appliances answers all of those questions with a single framework: kdeps.

kdeps lets you define AI agents as YAML workflows — deterministic pipelines of resources (LLM calls, SQL queries, HTTP requests, Python scripts, browser automation) connected in a

dependency graph. You declare what each step does and what it depends on. kdeps handles execution, validation, retries, error handling, and deployment.

This book is the complete guide to building with kdeps, from a first working agent to a multi-agent system running in production on Kubernetes.

You will learn how to:

  • Build deterministic AI pipelines using a directed acyclic graph (DAG) of typed resources
  • Wire LLM calls, SQL queries, HTTP clients, Python scripts, web scrapers, and browser automation into a single workflow
  • Validate inputs, handle errors gracefully, and make agents resilient to real-world conditions
  • Compose reusable components and build multi-agent agencies where specialized agents collaborate autonomously
  • Deploy to Docker, Kubernetes, standalone binaries, or edge devices — from the same YAML, without changing a line
  • Run local open-source LLMs via Ollama, or route to OpenAI, Anthropic, Gemini, Perplexity, or any compatible provider
  • Debug with kdeps validate, kdeps doctor, hot-reload development mode, and trace logging
  • Build native chat bots for Telegram, Discord, Slack, and WhatsApp — or process files from the command line — with the same resource DAG, just a different input source

What this book is not: a machine learning theory text, a prompt engineering tutorial, or a guide to any proprietary AI platform. It is a book about running AI in production as reliably as you run a database.

What you need: familiarity with YAML and basic command-line comfort. No prior AI/ML experience required.

Share this book

Categories

Feedback

Author

Joel Bryan Juliano

Hi, I'm Joel.

I am Senior Software Engineer with 20+ years of experience.

And with over 20 years in the game, I’ve seen it all and loved every minute of it.

Originally from the Philippines, I am now a Dutchman living in Amsterdam together with my family.

My journey has taken me through a variety of industries, from sports streaming to cybersecurity, and everything in between.

Along the way, I’ve picked up a diverse set of skills and experiences, in which I document into books.

Contents

Also by the Author

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.)

In fact, authors have earned over $15 million writing, publishing and selling 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