Commands Experimental
ChatML demonstration
Run the installed hard-coded ChatML demonstrations; this is not a script-file runner.
View Markdown source ↗dsl_script is an experimental demonstration executable, not a CLI for loading
a user-supplied script file. It takes no parsed command-line options and runs
hard-coded programs in its source.
dune exec bin/dsl_script.exeWhat it runs
Section titled “What it runs”The current source contains five demonstrations:
- A task-orchestration state machine with task status updates and emitted actions.
- An event-driven task runner with attempts, completion, failure, and stop.
- A recursive arithmetic-expression interpreter with substitution.
- Breadth-first graph traversal over an adjacency matrix.
- Record extension, task construction, and hashing.
Each program gets a fresh BuiltinModules.create_default_env () environment.
The local parse helper retains source text alongside the parsed statements;
Chatml_resolver.eval_program checks and evaluates the result. A diagnostic is
formatted against that source on failure. Successful demos print their output
and a completion line. Treat the source as the output specification rather than
expecting the old Alice/age demonstration.
Use ChatML in an agent
Section titled “Use ChatML in an agent”For real agent orchestration, put a moderator declaration in ChatMD and use an appropriate host. See ChatML workflows and the runtime guide.
The parse function in this binary is an implementation helper, not an installed
library API to access via open Dsl_script. Embedders should use the
ChatML parser,
resolver, and host-runtime interfaces.
Return to the command index.