Skip to content

example.hello

Template, alpha (0.1.1-alpha.3, MIT licence): the Friendly Greeter, the smallest agent that meets the whole of the contract. It greets whoever the input names, in English, Welsh, French or German, and does nothing else. Read it to see each step of the recipe; start a new agent with uv run scripts/dd.py new-agent <name> (Agents).

Part In this agent
Input Salutation: greeted_name, and an optional language (a BCP 47 tag, English if absent; only the primary language subtag is read, so cy-GB is Welsh).
Payload Greeting: greeting_text, how it came about (greeting_derivation, always template) and grounded_on.
Grounding mode none: deterministic, no retrieval and no model. It cites the input and nothing else.
Outcomes succeeded with a greeting; abstained (capability-not-implemented, no payload or evidence) for a language it has no greeting for. Every success asks for human review.
Action class advise; the conductor matches it against the profile's actions_requiring_approval.
Steps served None. A template is not offered to researchers; a real agent names its process-flow steps in serves.

What it does not do

It greets in four languages and does no research data work. It reads no environment variable, calls no model, tool or retrieval service, and depends only on dd_sdk (the tests also use the harness).

Run it

uv run dd-example-hello serve --port 8101
uv run workbench invoke --agent example.hello --input workbench/samples/hello.salutation.json
uv run pytest agents/example-hello

Where to read

src/dd_agent_example_hello/agent.py is commented against the numbered recipe in agents/README.md. The classes are declared in src/dd_agent_example_hello/schema/hello.yaml; after editing it, run uv run dd-gen-schema agents/example-hello/src/dd_agent_example_hello/schema/hello.yaml.