Skip to content

Example: Hello Agent

Document ID: EX-001
File Path: docs/16-examples/hello-agent.md
Version: 1.0.0
Status: Draft
Owner: Developer Relations Team
Last Updated: 2026-06-27


Define and run the simplest possible agent — no tools, no memory — to learn the core loop: define → run → observe.


agents/hello.yaml:

apiVersion: agent.wovyr.io/v1
kind: Agent
metadata:
name: hello
spec:
model_selector: { capability: chat, class: fast }
instructions: |
You are a friendly assistant. Greet the user and answer briefly.

The model selector lets the LLM Gateway pick a fast model; no model is pinned.


Terminal window
wovyr agents run --local -f agents/hello.yaml \
--input '{"message":"Hi, who are you?"}' --stream

--stream shows the run as it happens (run lifecycle):

start · model: <fast model> (provider: ...)
delta · "Hi! I'm a friendly assistant ..."
done · tokens: 48, cost_usd: 0.0001

Publish, then run against a server:

Terminal window
wovyr agents create -f agents/hello.yaml
ID=$(wovyr agents list -o json | jq -r '.data[]|select(.name=="hello").id')
wovyr agents publish "$ID"
wovyr agents run "$ID" --input '{"message":"Hello!"}'




VersionDateDescription
1.0.02026-06-27Initial Hello Agent example