rsnarsna
feat(alli-backend): Wave-1 standardization, standalone sys.env node & vault crypto, and DEC-014 security hardening
8628c98 Download specs/nodes/math.json from Rsnarsna/auto: direct link, hf CLI and curl.
- Browser
- Download file 26 kB
-
https://huggingface.co/spaces/Rsnarsna/auto/resolve/main/specs/nodes/math.json
- Command line
-
hf download hf://spaces/Rsnarsna/auto/specs/nodes/math.json
-
curl -L -o math.json https://huggingface.co/spaces/Rsnarsna/auto/resolve/main/specs/nodes/math.json
26 kB
[
{
"id": "math.sqrt",
"type": "math.sqrt",
"label": "Square Root",
"category": "Math",
"version": "1.0.0",
"description": "Compute the non-negative square root of a numeric input.",
"icon": "Calculator",
"inputs": [
{
"id": "x",
"name": "Input Number (x)",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "Non-negative real number",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"parameters": [
{
"id": "rounding",
"name": "Rounding Mode",
"type": "select",
"default": "none",
"description": "Optional rounding behavior for floating point output",
"options": [
{
"value": "none",
"label": "Exact Float (No Rounding)"
},
{
"value": "round",
"label": "Round to Precision"
},
{
"value": "floor",
"label": "Floor (math.floor)"
},
{
"value": "ceil",
"label": "Ceil (math.ceil)"
}
],
"min_value": null,
"max_value": null,
"required": true,
"step": null,
"precision": null,
"regex": null,
"enum_values": null,
"widget": null,
"is_identifier": null
},
{
"id": "precision",
"name": "Decimal Precision",
"type": "number",
"default": 2,
"description": "Number of decimal digits when rounding mode is active",
"options": null,
"min_value": 0.0,
"max_value": 10.0,
"required": true,
"step": null,
"precision": null,
"regex": null,
"enum_values": null,
"widget": null,
"is_identifier": null
}
],
"outputs": [
{
"id": "result",
"name": "Square Root",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "Resulting square root value",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"settings": {
"timeout_seconds": 5.0,
"retry_count": 0,
"fallback_on_error": null,
"cache_policy": "session",
"continue_on_error": false,
"execute_once": false
},
"validation": null,
"execution": {
"handler_type": "builtin",
"callable_path": "math.sqrt",
"code_template": "{result} = math.sqrt({x})"
},
"codegen": {
"template": "{result} = math.sqrt({x})",
"imports": [
"math"
],
"requirements": [],
"variable_prefix": null
},
"dependencies": [],
"docs": {
"summary": "Return the square root of x. Raises ValueError if x is negative.",
"description": "Computes the principal square root of a non-negative numeric input using IEEE 754 floating-point arithmetic with configurable rounding precision.",
"doc_url": "https://docs.python.org/3/library/math.html#math.sqrt",
"examples": [
{
"title": "Basic Square Root",
"inputs": {
"x": 16.0
},
"parameters": {
"rounding": "none",
"precision": 2
},
"expected_output": {
"result": 4.0
},
"code_snippet": "result = math.sqrt(16.0)"
},
{
"title": "Rounded Square Root",
"inputs": {
"x": 2.0
},
"parameters": {
"rounding": "round",
"precision": 3
},
"expected_output": {
"result": 1.414
},
"code_snippet": "result = round(math.sqrt(2.0), 3)"
}
],
"complexity": "O(1)",
"time_complexity": "O(1)",
"space_complexity": "O(1)",
"complexity_assumptions": "Hardware floating-point FPU square root instruction",
"exceptions": [
"ValueError",
"TypeError"
],
"possible_exceptions": [
{
"type": "ValueError",
"condition": "x is negative (math domain error)",
"severity": "error"
},
{
"type": "TypeError",
"condition": "x is not a float or integer",
"severity": "error"
}
],
"since_version": "1.0.0"
},
"verification": {
"node_kind": "value_producer",
"is_deterministic": true,
"side_effects": [],
"minimal_config": {
"rounding": "none",
"precision": 2
},
"test_inputs": {
"x": 49.0
},
"expected_outputs": {
"result": 7.0
},
"expected_errors": {
"negative_input": "ValueError"
},
"capability_states": {
"extracted": true,
"node_generated": true,
"runtime_supported": true,
"codegen_supported": true
}
},
"capability_states": null,
"allow_var_positional": false,
"allow_var_keyword": false,
"var_positional_name": "args",
"var_keyword_name": "kwargs"
},
{
"id": "math.pow",
"type": "math.pow",
"label": "Power (x^y)",
"category": "Math",
"version": "1.0.0",
"description": "Calculate x raised to the power y.",
"icon": "Calculator",
"inputs": [
{
"id": "x",
"name": "Base (x)",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
},
{
"id": "y",
"name": "Exponent (y)",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"parameters": [],
"outputs": [
{
"id": "result",
"name": "Result",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"settings": {
"timeout_seconds": 5.0,
"retry_count": 0,
"fallback_on_error": null,
"cache_policy": "session",
"continue_on_error": false,
"execute_once": false
},
"validation": null,
"execution": null,
"codegen": {
"template": "{result} = math.pow({x}, {y})",
"imports": [
"math"
],
"requirements": [],
"variable_prefix": null
},
"dependencies": [],
"docs": {
"summary": "Return x raised to the power y.",
"description": "Computes x raised to the power of y as a floating-point number.",
"doc_url": "https://docs.python.org/3/library/math.html#math.pow",
"examples": [
{
"title": "Power",
"inputs": {
"x": 2.0,
"y": 3.0
},
"parameters": {},
"expected_output": {
"result": 8.0
},
"code_snippet": "result = math.pow(2.0, 3.0)"
}
],
"complexity": "O(1)",
"time_complexity": "O(1)",
"space_complexity": "O(1)",
"complexity_assumptions": null,
"exceptions": [],
"possible_exceptions": [],
"since_version": "1.0.0"
},
"verification": {
"node_kind": "value_producer",
"is_deterministic": true,
"side_effects": [],
"minimal_config": {},
"test_inputs": {
"x": 2.0,
"y": 3.0
},
"expected_outputs": {
"result": 8.0
},
"expected_errors": null,
"capability_states": {
"extracted": true,
"node_generated": true,
"runtime_supported": true,
"codegen_supported": true
}
},
"capability_states": null,
"allow_var_positional": false,
"allow_var_keyword": false,
"var_positional_name": "args",
"var_keyword_name": "kwargs"
},
{
"id": "math.abs",
"type": "math.abs",
"label": "Absolute Value",
"category": "Math",
"version": "1.0.0",
"description": "Compute the absolute (non-negative) magnitude of a number.",
"icon": "Calculator",
"inputs": [
{
"id": "x",
"name": "Input (x)",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"parameters": [],
"outputs": [
{
"id": "result",
"name": "Absolute Value",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"settings": {
"timeout_seconds": 5.0,
"retry_count": 0,
"fallback_on_error": null,
"cache_policy": "session",
"continue_on_error": false,
"execute_once": false
},
"validation": null,
"execution": null,
"codegen": {
"template": "{result} = abs({x})",
"imports": [],
"requirements": [],
"variable_prefix": null
},
"dependencies": [],
"docs": {
"summary": "Return absolute value.",
"description": "Returns the absolute value of a numeric value.",
"doc_url": "https://docs.python.org/3/library/functions.html#abs",
"examples": [
{
"title": "Absolute",
"inputs": {
"x": -42.0
},
"parameters": {},
"expected_output": {
"result": 42.0
},
"code_snippet": "result = abs(-42.0)"
}
],
"complexity": "O(1)",
"time_complexity": "O(1)",
"space_complexity": "O(1)",
"complexity_assumptions": null,
"exceptions": [],
"possible_exceptions": [],
"since_version": "1.0.0"
},
"verification": {
"node_kind": "value_producer",
"is_deterministic": true,
"side_effects": [],
"minimal_config": {},
"test_inputs": {
"x": -42.0
},
"expected_outputs": {
"result": 42.0
},
"expected_errors": null,
"capability_states": {
"extracted": true,
"node_generated": true,
"runtime_supported": true,
"codegen_supported": true
}
},
"capability_states": null,
"allow_var_positional": false,
"allow_var_keyword": false,
"var_positional_name": "args",
"var_keyword_name": "kwargs"
},
{
"id": "math.round",
"type": "math.round",
"label": "Round Number",
"category": "Math",
"version": "1.0.0",
"description": "Round a float to a given precision in decimal digits.",
"icon": "Calculator",
"inputs": [
{
"id": "x",
"name": "Number (x)",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"parameters": [
{
"id": "precision",
"name": "Decimal Places",
"type": "number",
"default": 0,
"description": "",
"options": null,
"min_value": 0.0,
"max_value": 10.0,
"required": true,
"step": null,
"precision": null,
"regex": null,
"enum_values": null,
"widget": null,
"is_identifier": null
}
],
"outputs": [
{
"id": "result",
"name": "Rounded Result",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"settings": {
"timeout_seconds": 5.0,
"retry_count": 0,
"fallback_on_error": null,
"cache_policy": "session",
"continue_on_error": false,
"execute_once": false
},
"validation": null,
"execution": null,
"codegen": {
"template": "{result} = round({x}, {precision})",
"imports": [],
"requirements": [],
"variable_prefix": null
},
"dependencies": [],
"docs": {
"summary": "Round a number to given decimal precision.",
"description": "Rounds float x to ndigits decimal precision using round-half-to-even.",
"doc_url": "https://docs.python.org/3/library/functions.html#round",
"examples": [
{
"title": "Round",
"inputs": {
"x": 3.14159
},
"parameters": {
"precision": 2
},
"expected_output": {
"result": 3.14
},
"code_snippet": "result = round(3.14159, 2)"
}
],
"complexity": "O(1)",
"time_complexity": "O(1)",
"space_complexity": "O(1)",
"complexity_assumptions": null,
"exceptions": [],
"possible_exceptions": [],
"since_version": "1.0.0"
},
"verification": {
"node_kind": "value_producer",
"is_deterministic": true,
"side_effects": [],
"minimal_config": {
"precision": 2
},
"test_inputs": {
"x": 3.14159
},
"expected_outputs": {
"result": 3.14
},
"expected_errors": null,
"capability_states": {
"extracted": true,
"node_generated": true,
"runtime_supported": true,
"codegen_supported": true
}
},
"capability_states": null,
"allow_var_positional": false,
"allow_var_keyword": false,
"var_positional_name": "args",
"var_keyword_name": "kwargs"
},
{
"id": "math.floor",
"type": "math.floor",
"label": "Floor (math.floor)",
"category": "Math",
"version": "1.0.0",
"description": "Return the floor of x as an integral float/int.",
"icon": "Calculator",
"inputs": [
{
"id": "x",
"name": "Input (x)",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"parameters": [],
"outputs": [
{
"id": "result",
"name": "Floor Result",
"type": "int",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"settings": {
"timeout_seconds": 5.0,
"retry_count": 0,
"fallback_on_error": null,
"cache_policy": "session",
"continue_on_error": false,
"execute_once": false
},
"validation": null,
"execution": null,
"codegen": {
"template": "{result} = math.floor({x})",
"imports": [
"math"
],
"requirements": [],
"variable_prefix": null
},
"dependencies": [],
"docs": {
"summary": "Return greatest integer less than or equal to x.",
"description": "Computes the floor of a real numeric value.",
"doc_url": "https://docs.python.org/3/library/math.html#math.floor",
"examples": [
{
"title": "Floor",
"inputs": {
"x": 3.9
},
"parameters": {},
"expected_output": {
"result": 3
},
"code_snippet": "result = math.floor(3.9)"
}
],
"complexity": "O(1)",
"time_complexity": "O(1)",
"space_complexity": "O(1)",
"complexity_assumptions": null,
"exceptions": [],
"possible_exceptions": [],
"since_version": "1.0.0"
},
"verification": {
"node_kind": "value_producer",
"is_deterministic": true,
"side_effects": [],
"minimal_config": {},
"test_inputs": {
"x": 3.9
},
"expected_outputs": {
"result": 3
},
"expected_errors": null,
"capability_states": {
"extracted": true,
"node_generated": true,
"runtime_supported": true,
"codegen_supported": true
}
},
"capability_states": null,
"allow_var_positional": false,
"allow_var_keyword": false,
"var_positional_name": "args",
"var_keyword_name": "kwargs"
},
{
"id": "math.ceil",
"type": "math.ceil",
"label": "Ceiling (math.ceil)",
"category": "Math",
"version": "1.0.0",
"description": "Return the ceiling of x as an integral float/int.",
"icon": "Calculator",
"inputs": [
{
"id": "x",
"name": "Input (x)",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"parameters": [],
"outputs": [
{
"id": "result",
"name": "Ceil Result",
"type": "int",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"settings": {
"timeout_seconds": 5.0,
"retry_count": 0,
"fallback_on_error": null,
"cache_policy": "session",
"continue_on_error": false,
"execute_once": false
},
"validation": null,
"execution": null,
"codegen": {
"template": "{result} = math.ceil({x})",
"imports": [
"math"
],
"requirements": [],
"variable_prefix": null
},
"dependencies": [],
"docs": {
"summary": "Return smallest integer greater than or equal to x.",
"description": "Computes the ceiling of a real numeric value.",
"doc_url": "https://docs.python.org/3/library/math.html#math.ceil",
"examples": [
{
"title": "Ceil",
"inputs": {
"x": 3.1
},
"parameters": {},
"expected_output": {
"result": 4
},
"code_snippet": "result = math.ceil(3.1)"
}
],
"complexity": "O(1)",
"time_complexity": "O(1)",
"space_complexity": "O(1)",
"complexity_assumptions": null,
"exceptions": [],
"possible_exceptions": [],
"since_version": "1.0.0"
},
"verification": {
"node_kind": "value_producer",
"is_deterministic": true,
"side_effects": [],
"minimal_config": {},
"test_inputs": {
"x": 3.1
},
"expected_outputs": {
"result": 4
},
"expected_errors": null,
"capability_states": {
"extracted": true,
"node_generated": true,
"runtime_supported": true,
"codegen_supported": true
}
},
"capability_states": null,
"allow_var_positional": false,
"allow_var_keyword": false,
"var_positional_name": "args",
"var_keyword_name": "kwargs"
},
{
"id": "math.min",
"type": "math.min",
"label": "Minimum Value",
"category": "Math",
"version": "1.0.0",
"description": "Return the smaller of two numbers.",
"icon": "Calculator",
"inputs": [
{
"id": "a",
"name": "Number A",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
},
{
"id": "b",
"name": "Number B",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"parameters": [],
"outputs": [
{
"id": "result",
"name": "Minimum",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"settings": {
"timeout_seconds": 5.0,
"retry_count": 0,
"fallback_on_error": null,
"cache_policy": "session",
"continue_on_error": false,
"execute_once": false
},
"validation": null,
"execution": null,
"codegen": {
"template": "{result} = min({a}, {b})",
"imports": [],
"requirements": [],
"variable_prefix": null
},
"dependencies": [],
"docs": {
"summary": "Return minimum value.",
"description": "Returns the minimum of two numeric values.",
"doc_url": "https://docs.python.org/3/library/functions.html#min",
"examples": [
{
"title": "Min",
"inputs": {
"a": 10.0,
"b": 2.5
},
"parameters": {},
"expected_output": {
"result": 2.5
},
"code_snippet": "result = min(10.0, 2.5)"
}
],
"complexity": "O(1)",
"time_complexity": "O(1)",
"space_complexity": "O(1)",
"complexity_assumptions": null,
"exceptions": [],
"possible_exceptions": [],
"since_version": "1.0.0"
},
"verification": {
"node_kind": "value_producer",
"is_deterministic": true,
"side_effects": [],
"minimal_config": {},
"test_inputs": {
"a": 10.0,
"b": 2.5
},
"expected_outputs": {
"result": 2.5
},
"expected_errors": null,
"capability_states": {
"extracted": true,
"node_generated": true,
"runtime_supported": true,
"codegen_supported": true
}
},
"capability_states": null,
"allow_var_positional": false,
"allow_var_keyword": false,
"var_positional_name": "args",
"var_keyword_name": "kwargs"
},
{
"id": "math.max",
"type": "math.max",
"label": "Maximum Value",
"category": "Math",
"version": "1.0.0",
"description": "Return the larger of two numbers.",
"icon": "Calculator",
"inputs": [
{
"id": "a",
"name": "Number A",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
},
{
"id": "b",
"name": "Number B",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"parameters": [],
"outputs": [
{
"id": "result",
"name": "Maximum",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"settings": {
"timeout_seconds": 5.0,
"retry_count": 0,
"fallback_on_error": null,
"cache_policy": "session",
"continue_on_error": false,
"execute_once": false
},
"validation": null,
"execution": null,
"codegen": {
"template": "{result} = max({a}, {b})",
"imports": [],
"requirements": [],
"variable_prefix": null
},
"dependencies": [],
"docs": {
"summary": "Return maximum value.",
"description": "Returns the maximum of two numeric values.",
"doc_url": "https://docs.python.org/3/library/functions.html#max",
"examples": [
{
"title": "Max",
"inputs": {
"a": 10.0,
"b": 2.5
},
"parameters": {},
"expected_output": {
"result": 10.0
},
"code_snippet": "result = max(10.0, 2.5)"
}
],
"complexity": "O(1)",
"time_complexity": "O(1)",
"space_complexity": "O(1)",
"complexity_assumptions": null,
"exceptions": [],
"possible_exceptions": [],
"since_version": "1.0.0"
},
"verification": {
"node_kind": "value_producer",
"is_deterministic": true,
"side_effects": [],
"minimal_config": {},
"test_inputs": {
"a": 10.0,
"b": 2.5
},
"expected_outputs": {
"result": 10.0
},
"expected_errors": null,
"capability_states": {
"extracted": true,
"node_generated": true,
"runtime_supported": true,
"codegen_supported": true
}
},
"capability_states": null,
"allow_var_positional": false,
"allow_var_keyword": false,
"var_positional_name": "args",
"var_keyword_name": "kwargs"
}
]
[
{
"id": "math.sqrt",
"type": "math.sqrt",
"label": "Square Root",
"category": "Math",
"version": "1.0.0",
"description": "Compute the non-negative square root of a numeric input.",
"icon": "Calculator",
"inputs": [
{
"id": "x",
"name": "Input Number (x)",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "Non-negative real number",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"parameters": [
{
"id": "rounding",
"name": "Rounding Mode",
"type": "select",
"default": "none",
"description": "Optional rounding behavior for floating point output",
"options": [
{
"value": "none",
"label": "Exact Float (No Rounding)"
},
{
"value": "round",
"label": "Round to Precision"
},
{
"value": "floor",
"label": "Floor (math.floor)"
},
{
"value": "ceil",
"label": "Ceil (math.ceil)"
}
],
"min_value": null,
"max_value": null,
"required": true,
"step": null,
"precision": null,
"regex": null,
"enum_values": null,
"widget": null,
"is_identifier": null
},
{
"id": "precision",
"name": "Decimal Precision",
"type": "number",
"default": 2,
"description": "Number of decimal digits when rounding mode is active",
"options": null,
"min_value": 0.0,
"max_value": 10.0,
"required": true,
"step": null,
"precision": null,
"regex": null,
"enum_values": null,
"widget": null,
"is_identifier": null
}
],
"outputs": [
{
"id": "result",
"name": "Square Root",
"type": "float",
"required": true,
"multiple": false,
"kind": "data",
"default_value": null,
"description": "Resulting square root value",
"is_var_positional": false,
"is_var_keyword": false,
"keyword_key": null
}
],
"settings": {
"timeout_seconds": 5.0,
"retry_count": 0,
"fallback_on_error": null,
"cache_policy": "session",
"continue_on_error": false,
"execute_once": false
},