
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@graphai/agents
Advanced tools
Agents for GraphAI.
yarn add @graphai/agents
import { GraphAI } from "graphai";
import * as agents from "@graphai/agents";
const graph = new GraphAI(graph_data, agents);
const result = await graph.run();
{
"version": 0.5,
"nodes": {
"source": {
"value": "apple"
},
"source2": {
"value": {
"apple": "red"
}
},
"step1": {
"agent": "stringTemplateAgent",
"params": {
"template": "${a}, ${b}, ${c}."
},
"inputs": {
"a": ":source",
"b": "orange",
"c": null
},
"isResult": true
},
"step2": {
"agent": "sleepAndMergeAgent",
"inputs": {
"array": [
":source2",
{
"lemon": "yellow"
}
]
},
"isResult": true
}
}
}
{
"version": 0.5,
"nodes": {
"apple": {
"value": {
"fruits": {
"apple": "red"
}
}
},
"lemon": {
"value": {
"fruits": {
"lemon": "yellow"
}
}
},
"total": {
"agent": "sleepAndMergeAgent",
"inputs": {
"array": [
":apple",
":lemon",
":apple.fruits",
":lemon.fruits"
]
}
}
}
}
{
"version": 0.5,
"nodes": {
"source": {
"value": {}
},
"positive": {
"agent": "sleepAndMergeAgent",
"anyInput": true,
"isResult": true,
"inputs": {
"array": [
":source.yes"
]
}
},
"negative": {
"agent": "sleepAndMergeAgent",
"anyInput": true,
"isResult": true,
"inputs": {
"array": [
":source.no"
]
}
}
}
}
{
"version": 0.5,
"nodes": {
"source1": {
"value": {
"apple": "red"
}
},
"source2": {
"value": {
"lemon": "yellow"
}
},
"router1": {
"agent": "sleepAndMergeAgent",
"params": {
"duration": 10
},
"isResult": true,
"inputs": {
"array": [
":source1"
]
}
},
"router2": {
"agent": "sleepAndMergeAgent",
"params": {
"duration": 100
},
"isResult": true,
"inputs": {
"array": [
":source2"
]
}
},
"receiver": {
"agent": "sleepAndMergeAgent",
"anyInput": true,
"isResult": true,
"inputs": {
"array": [
":router1",
":router2"
]
}
}
}
}
{
"version": 0.5,
"nodes": {
"source": {
"value": {
"nodes": {
"source": {
"value": 1
},
"result": {
"agent": "copyAgent",
"inputs": {
"source": ":source"
},
"isResult": true
}
}
}
},
"nested": {
"agent": "nestedAgent",
"graph": ":source",
"isResult": true,
"params": {
"supressError": true
}
},
"catch": {
"agent": "propertyFilterAgent",
"params": {
"include": [
"message"
]
},
"if": ":nested.onError",
"inputs": {
"item": ":nested.onError"
},
"isResult": true
}
}
}
FAQs
Agents for GraphAI.
The npm package @graphai/agents receives a total of 58 weekly downloads. As such, @graphai/agents popularity was classified as not popular.
We found that @graphai/agents demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.