GraphAI (https://github.com/receptron/graphai) is an open source project, which allows non-programers to build AI applications by describing data flows in declarative language, GraphAI. Here is the "Hello World" of GraphAI.
version: 0.3
nodes:
llm:
agent: openAIAgent
params:
model: gpt-4o
inputs:
- Explain ML's transformer in 100 words.
output:
agent: copyAgent
console:
after: true
inputs:
- :llm.choices.$0.message.content
It has two nodes, "llm" and "output", The "llm" node is associated with "openAIAgent", which calls OpenAI's chat completion API, and takes "Explain ML's transformer in 100 words." as an input, which acts as a user prompt. The "output" node receives the input from the "llm" node, and print it out to the console.