CLI
The CLI is a small JSON command surface around ApiService.
Assets
cargo run -- assets workflows
cargo run -- assets nodes
cargo run -- assets compositions
cargo run -- assets modelsRuns
cargo run -- run preview workflow.text_plan --id run-001 --inputs '{"prompt":"Write a migration plan"}'
cargo run -- run create workflow.text_plan --id run-001 --inputs '{"prompt":"Write a migration plan"}'
cargo run -- run list
cargo run -- run get run-001
cargo run -- run status run-001
cargo run -- run request run-001
cargo run -- run workflow run-001Submit
With request template:
cargo run -- run submit run-001 draftWith explicit JSON:
cargo run -- run submit run-001 draft '{"messages":[{"role":"user","content":"Draft a plan"}]}'From stdin:
jq -n '{messages:[{role:"user",content:"Draft a plan"}]}' | cargo run -- run submit run-001 draft -Refresh and Streams
cargo run -- run refresh run-001
cargo run -- run events run-001
cargo run -- run trace run-001The CLI fails fast on unknown arguments, duplicate flags, and missing flag values.
Last updated on