Sha256: def6f6711b2c1a45d612f2bbdc9c931f9851da3c70450273396d13f9335fc6a4

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

definition :workflow do
  param :name, type: :positional

  node :description do
    param :description, type: :positional
  end

  node :settings do
    node :setting, repeat: true do
      param :key, type: :declarative # Allows method name to be used as the key
      param :value, type: :positional
    end
  end

  node :prompts do
    node :prompt, repeat: true do
      param :key, type: :positional
      param :content, type: :named, default: ''
    end
  end

  # Section node with repeatable steps
  node :section, repeat: true do
    param :name, type: :positional

    node :step, repeat: true do
      param :key, type: :positional

      node :input, repeat: true do
        param :key, type: :positional
      end

      node :prompt do
        param :key, type: :positional
      end

      node :output, repeat: true do
        param :key, type: :positional
      end
    end
  end

  node :actions do
    node :save do
    end

    node :save_json do
      param :path, type: :positional
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
klue-langcraft-0.4.0 docs/dsl-samples/youtube-launch-optimizer.defn.klue
klue-langcraft-0.3.0 docs/dsl-samples/youtube-launch-optimizer.defn.klue
klue-langcraft-0.2.0 docs/dsl-samples/youtube-launch-optimizer.defn.klue
klue-langcraft-0.1.1 docs/dsl-samples/youtube-launch-optimizer.defn.klue
klue-langcraft-0.1.0 docs/dsl-samples/youtube-launch-optimizer.defn.klue