Skip to main content

Function: runDSL()

runDSL(code, input?, config?): Promise<unknown>

Defined in: packages/tools/src/baleybots-dsl-v2/pipeline.ts:220

Execute DSL code in a single function call.

This is a convenience function for one-off executions. For repeated executions, use Pipeline.from() to compile once and reuse.

Parameters​

code​

string

input?​

unknown

Optional input (overridden by run() statement in DSL)

config?​

PipelineConfig

Returns​

Promise<unknown>

Example​

const result = await runDSL(`
greeter { "goal": "Greet the user warmly" }
run("Hello!")
`);