Function: runDSL()
runDSL(
code,input?,config?):Promise<unknown>
Defined in: packages/tools/src/baleybots-dsl-v2/pipeline.ts:240
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
BAL code to execute
input?
unknown
Optional input (overridden by run() statement in DSL)
config?
Optional configuration
Returns
Promise<unknown>
The execution result
Example
const result = await runDSL(`
greeter { "goal": "Greet the user warmly" }
run("Hello!")
`);