import { ChaosEngine, resolveConfig } from 'dsh-tool-chaos/engine' const engine = new ChaosEngine(resolveConfig({ enabled: true, dryRun: false, seed: 'example-retry-v1', rules: [{ id: 'first-web-error', tool: 'web_fetch', action: 'error', scope: 'root', probability: 1, maxInjections: 1, }], })) const execution = { callId: 'call-1', rootCallId: 'call-1', name: 'web_fetch', arguments: { url: 'https://example.test' }, } console.log(engine.decide('execute', execution)) console.log(engine.snapshot())