Blockly.defineBlocksWithJsonArray([
{
type: "variables_get",
message0: "%1",
args0: [
{
type: "field_variable",
name: "VAR",
variable: "%{BKY_VARIABLES_DEFAULT_NAME}"
}
],
output: null
},
{
type: "variables_set",
message0: "%{BKY_VARIABLES_SET}",
args0: [
{
type: "field_variable",
name: "VAR",
variable: "%{BKY_VARIABLES_DEFAULT_NAME}"
},
{
type: "input_value",
name: "VALUE"
}
]
},
{
type: "prompt",
message0: "Generate starting with %1",
args0: [
{
type: "input_value",
name: "prompt",
check: "String",
align: "TOP"
}
],
output: null
},
{
type: "extract_html",
message0: "Extract human-readable text from this HTML %1",
args0: [
{
type: "input_value",
name: "extract_html",
check: "String",
align: "TOP"
}
],
output: null
},
{
type: "transform_sense",
message0: "Clean this text so that it makes sense %1",
args0: [
{
type: "input_value",
name: "transform_sense",
check: "String",
align: "TOP"
}
],
output: null
},
{
type: "rewrite_style",
message0: "Rewrite this in the style of %1",
args0: [
{
type: "input_value",
name: "rewrite_style",
check: "String",
align: "TOP"
}
],
output: null
},
{
type: "rewrite_for",
message0: "Rewrite this for %1",
args0: [
{
type: "input_value",
name: "rewrite_for",
check: "String",
align: "TOP"
}
],
output: null
}
])