A function per event
A request starts one bounded run, and an idle agent scales to zero. The logic is YAML only.
See the events
Declarative AI workflow orchestration
In YAML, on your own hardware. A workflow.yaml becomes a self-hosted agent with deterministic steps. Serve it as an API, a webhook, a bot, an MCP server or an A2A agent, and run it offline.
actionId: llmvalidations: check: - get('q') != '' # 400 before any model callchat: model: name: ministral3 # local, no API key context: prompt: "{{ get('q') }}" loop: # a bounded agent step tools: [read_file] maxRounds: 5runs on
who it's for
The model ships with the workflow, so all of it runs inside your boundary.
git-native
The YAML in your repository defines what the appliance does. A commit changes the behavior, and git history is its changelog.
validations:
check:
- get('q') != ''
+ - len(get('q')) < 2000 # reject prompts over 2000 characters
chat:
model:
- name: llama3.2:1b
+ name: qwen2.5:7b
context:
prompt: "{{ get('q') }}"One commit, two behavior changes. The diff is the change.
getting started
Write YAML. Run it. Ship the same file.
Put the steps in one workflow.yaml.
kdeps run serves it as an API, a listener, a file job, or a prompt.
Ship the same file as an image, a binary, or an ISO.
events in, calls out
Each event starts one bounded run, as with a serverless function. A listener receives the event, and a connector sends the answer. Keys stay in an encrypted vault.
book
From your first agent to production deployment, in one book.
Build & Deploy Autonomous AI Agents and Agencies in YAML
From a first workflow to an offline appliance in production.
Read the book ->