Files
majordomo/examples
Steve Dudenhoeffer 3e81fbd540
CI / Tidy (push) Successful in 9m39s
CI / Build & Test (push) Successful in 10m21s
docs: public-readiness — vibe-coded disclosure + genericize internal hosts
- README + CLAUDE.md: upfront "this is a vibe-coded project" disclosure for
  going public.
- Replace internal LAN hostnames (*.orgrimmar.dudenhoeffer.casa) with
  example.com across README, ADR-0004, the envproviders example, and env_test.go
  (assertions updated together; suite still green). Token was already a
  "change-me" placeholder, not a real secret.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 19:25:58 -04:00
..

Examples

One runnable program per hard requirement. Each takes -model (a full majordomo spec — single target, chain, or alias) and reads provider keys from the environment (OLLAMA_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, LLM_* DSNs).

Example Shows
parse/ resolving a spec and a plain chat
failover/ failover chains, incl. the trailing-alias form, + health behavior
tiers/ registering custom tiers (aliases) and parsing them
envproviders/ LLM_* env-DSN providers (foreman) as first-class chain elements
multimodal/ attaching an image; capability-aware normalization
tools/ the canonical tool-call loop against the raw Model API
structured/ typed structured output via Generate[T]
agent/ an agent with a toolbox running the tool-dispatch loop
skillexample/ attaching the ready-made clock + calc skills to an agent
live/ the Phase 8 live-validation harness (real Ollama Cloud; needs .env)

Run any of them like:

OLLAMA_API_KEY=... go run ./examples/parse -model "ollama-cloud/minimax-m3:cloud"