DeAI Research
Tool · takes numbers, gives text

Average

from the catalog, publicfrom this node's catalog0 runs here

What it does
Averages the numbers.
Give it
numbers
You get
a number
Example
36
-9
74
36
9.5
x9 36-74
…
29.5
Gives text.Free uses today 100 of 100
How it was tested
  1. Right shape, and enough test casesstructural
  2. Clean: no one's data insidelint
  3. Origin noted and respectedprovenance
  4. Agrees with an independent referencereference
  5. Consistent: known relations holdmr
  6. Sensitive: tells broken copies apartmutants
  7. No hidden messagessubliminal
  8. Fast enough: under a minutebudget

A catalog tool: listed by construction. A tool built for a request carries the report of its own admission here.

Under the hood
def nums(s):
    out = []
    cur = ''
    for ch in s + ' ':
        isd = ch in '0123456789'
        if isd or (ch == '-' and cur == '') or (ch == '.' and cur != '' and cur != '-' and '.' not in cur):
            cur = cur + ch
        else:
            if cur != '' and cur != '-' and cur != '.' and cur != '-.':
                if '.' in cur:
                    out = out + [float(cur)]
                else:
                    out = out + [int(cur)]
            cur = ''
    return out
def solve(s):
    ns = nums(s)
    if len(ns) == 0:
        return 0
    return round(sum(ns) * 1.0 / len(ns), 6)

8 test cases ship with it; the first three:

inout
36
-9
74
36
9.5
x9 36-74
0
29.5
50
-9
18
50
9.5
x9 50-18
1
21.833333
34
-5
83
34
5.5
x5 34-83
2
30.611111
id
numbers_mean
artifact
adb2001025d4…d0fc3
signed by
fb922a8bb381…a05be
status
from the catalog, public
For agents
GET https://research.zaiba.cloud/api/v1/programs/numbers_mean
POST https://research.zaiba.cloud/api/v1/programs/numbers_mean/run
  {"input": "…"}
# 200 · X-DeAI-Rail: grant (free within the allowance) · output + signed receipt
GET https://research.zaiba.cloud/api/v1/programs/numbers_mean/code
# 200 · text/plain · the tool as one Python file, written by the library's authors