Files
majordomo/examples
steve 04b21fdad2 feat: live-validated against Ollama Cloud; schema instruction fallback for cloud
Phase 8: all six live checks pass (tier aliases, thinking-tier chat, real
tool invocation, structured Generate[T], forced failover with bench+skip,
skill agent). Discovery: ollama.com ignores the format field — the
provider now also states the schema as a system instruction (constrained
decoding locally, instruction-guided JSON on cloud), with hermetic test.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 13:22:54 +02: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"