shift Agent
{
"type": "object",
"properties": {
"array": {
"type": "array",
"description": "the array to shift an item from"
}
},
"required": [
"array"
]
}
{
"type": "object",
"properties": {
"item": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
},
{
"type": "object"
},
{
"type": "array"
}
],
"description": "the item shifted from the array"
},
"array": {
"type": "array",
"description": "the remaining array"
}
}
}
[
":agentId",
":agentId.array",
":agentId.array.$0",
":agentId.array.$1",
":agentId.item"
]
[
":agentId",
":agentId.array",
":agentId.array.$0",
":agentId.array.$1",
":agentId.item"
]
{
"array": [
1,
2,
3
]
}
{}
{
"array": [
2,
3
],
"item": 1
}
{
"array": [
"a",
"b",
"c"
]
}
{}
{
"array": [
"b",
"c"
],
"item": "a"
}
Receptron team
https://github.com/receptron/graphai
MIT