Documentation
¶
Overview ¶
Example: yaml_dashboard demonstrates a durable graph declared entirely in YAML (WC-C-004) — the YAML equivalent of examples/dashboard's hand-built Go graph. agent.yaml declares a `graph:` block (three "passthrough" nodes, with "gate" as a human-in-the-loop interrupt) and sets `durable: true`, so its compiled graph is registered with ChronosOS exactly as if it had been built by hand in Go and passed to chronosos.WithGraphs.
This program is the SDK-level equivalent of running:
chronos -c examples/yaml_dashboard/agent.yaml serve :8420
which loads the same YAML, compiles the same graph, and wires it into the dashboard automatically — no application code required. This example spells that out in Go so you can see exactly what `chronos serve` does under the hood.
No API key is required: the model provider is configured but never called — every graph node here is a "passthrough" node, not a "model" node. (See website/docs/guides/yaml-dashboard.md for "model"/"tool"/ "subagent" node examples.)
go run ./examples/yaml_dashboard/