adding list_numbers
This commit is contained in:
47
actions/list_numbers.yaml
Normal file
47
actions/list_numbers.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
# List Numbers Action
|
||||
# Returns a list of sequential integers as JSON
|
||||
|
||||
ref: python_example.list_numbers
|
||||
label: "List Numbers"
|
||||
description: "Returns a list of sequential integers starting from a given value"
|
||||
enabled: true
|
||||
|
||||
# Runner type determines how the action is executed
|
||||
runner_type: python
|
||||
|
||||
# Minimum Python version required (semver constraint)
|
||||
runtime_version: ">=3.9"
|
||||
|
||||
# Entry point is the Python script to execute
|
||||
entry_point: list_numbers.py
|
||||
|
||||
# Parameter delivery: stdin for secure parameter passing
|
||||
parameter_delivery: stdin
|
||||
parameter_format: json
|
||||
|
||||
# Output format: json (structured data parsing enabled)
|
||||
output_format: json
|
||||
|
||||
# Action parameters schema (flat format with inline required/secret)
|
||||
parameters:
|
||||
n:
|
||||
type: integer
|
||||
description: "How many numbers to generate"
|
||||
default: 10
|
||||
start:
|
||||
type: integer
|
||||
description: "Starting value of the sequence"
|
||||
default: 0
|
||||
|
||||
# Output schema (flat format)
|
||||
output_schema:
|
||||
items:
|
||||
type: array
|
||||
description: "The list of sequential integers"
|
||||
required: true
|
||||
|
||||
# Tags for categorization
|
||||
tags:
|
||||
- python
|
||||
- example
|
||||
- utility
|
||||
Reference in New Issue
Block a user