Skip to content

echoAgent

Package

@graphai/vanilla

Source

https://github.com/receptron/graphai/blob/main/agents/vanilla_agents/src/test_agents/echo_agent.ts

Description

Echo agent

Schema

inputs

json

{
  "type": "object",
  "description": "This agent does not use inputs. Leave empty.",
  "properties": {},
  "additionalProperties": false
}

output

json

{
  "type": "object",
  "description": "Returns the full 'params' object or the 'filterParams' object if 'filterParams' is set to true.",
  "additionalProperties": true
}

Input example of the next node

json

[
  ":agentId",
  ":agentId.text"
]
json

[
  ":agentId"
]

Samples

Sample0

inputs

json

{}

params

json

{"text":"this is test"}

result

json

{
  "text": "this is test"
}

Sample1

inputs

json

{}

params

json

{"text":"If you add filterParams option, it will respond to filterParams","filterParams":true}

result

json

{}

Author

Satoshi Nakajima

Repository

https://github.com/receptron/graphai

License

MIT

Released under the MIT License.