Skip to content
ochat
Search documentation

Use quotes for an exact phrase.

Search by topic, command, or code identifier.

    GitHub ↗

    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.

    Terminal window
    dune exec bin/dsl_script.exe

    The current source contains five demonstrations:

    1. A task-orchestration state machine with task status updates and emitted actions.
    2. An event-driven task runner with attempts, completion, failure, and stop.
    3. A recursive arithmetic-expression interpreter with substitution.
    4. Breadth-first graph traversal over an adjacency matrix.
    5. 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.

    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.