Skip to content

Latest commit

 

History

History
192 lines (128 loc) · 1.33 KB

copyAgent.md

File metadata and controls

192 lines (128 loc) · 1.33 KB

copyAgent

Description

Returns namedInputs

Schema

inputs

{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "type": "integer"
    },
    {
      "type": "object"
    },
    {
      "type": "array"
    }
  ]
}

output

{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "type": "integer"
    },
    {
      "type": "object"
    },
    {
      "type": "array"
    }
  ]
}

Input example of the next node

[
  ":agentId",
  ":agentId.color",
  ":agentId.model"
]
[
  ":agentId",
  ":agentId.array",
  ":agentId.array.$0",
  ":agentId.array.$1"
]
[
  ":agentId"
]

Samples

Sample0

inputs

{
  "color": "red",
  "model": "Model 3"
}

params

{}

result

{
  "color": "red",
  "model": "Model 3"
}

Sample1

inputs

{
  "array": [
    "Hello World",
    "Discarded"
  ]
}

params

{}

result

{
  "array": [
    "Hello World",
    "Discarded"
  ]
}

Sample2

inputs

{
  "color": "red",
  "model": "Model 3"
}

params

{"namedKey":"color"}

result

"red"

Author

Receptron team

Repository

https://github.com/receptron/graphai

License

MIT