Skip to content

Latest commit

 

History

History
169 lines (105 loc) · 1.04 KB

dataSumTemplateAgent.md

File metadata and controls

169 lines (105 loc) · 1.04 KB

dataSumTemplateAgent

Description

Returns the sum of input values

Schema

inputs

{
  "type": "object",
  "properties": {
    "array": {
      "type": "array",
      "description": "the array of numbers to calculate the sum of",
      "items": {
        "type": "integer"
      }
    }
  },
  "required": [
    "array"
  ]
}

output

{
  "type": "number"
}

Input example of the next node

[
  ":agentId"
]
[
  ":agentId"
]
[
  ":agentId"
]

Samples

Sample0

inputs

{
  "array": [
    1
  ]
}

params

{}

result

1

Sample1

inputs

{
  "array": [
    1,
    2
  ]
}

params

{}

result

3

Sample2

inputs

{
  "array": [
    1,
    2,
    3
  ]
}

params

{}

result

6

Author

Satoshi Nakajima

Repository

https://github.com/receptron/graphai

License

MIT