
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
@agentlabs/node-sdk
Advanced tools
A NodeJS SDK that can be used to control an AgentLabs managed AI agent.
Here is a minimal example in which an agent is connected to AgentLabs and prepared to handle user messages.
import { Project } from "@agentlabs/node-sdk";
const project = new Project({
projectId: "fff9fcad-07e0-418b-8037-a2dcc920220e",
secret: '<PROJECT_SECRET>',
agentlabsUrl: 'https://app.agentlabs.dev',
});
const agent = project.agent("4b55e242-a614-4c51-9193-12869e6070b3");
agent.onChatMessage((message) => {
if (message.text === 'ping') {
message.reply('pong')
} else {
message.reply("Sorry, I didn't get that.")
}
});
agent.connect()
Connecting to a self hosted instance is done the exact same way as connecting to the cloud version.
All you need to do is to use the right agentlabsUrl
while initializing the project.
const project = new Project({
projectId: "fff9fcad-07e0-418b-8037-a2dcc920220e",
secret: '<PROJECT_SECRET>',
agentlabsUrl: '<SELF_HOSTED_INSTANCE_DOMAIN>',
});
FAQs
An SDK to build AgentLabs AI agents
The npm package @agentlabs/node-sdk receives a total of 7 weekly downloads. As such, @agentlabs/node-sdk popularity was classified as not popular.
We found that @agentlabs/node-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.