
Product
Introducing Supply Chain Attack Campaigns Tracking in the Socket Dashboard
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.
@aigne/core
Advanced tools
@aigne/core is the foundation component of AIGNE Framework, providing the essential modules and tools needed to build AI-driven applications. This package implements the core functionalities of the framework, including agent systems, aigne environment, model integrations, and workflow pattern support.
npm install @aigne/core
yarn add @aigne/core
pnpm add @aigne/core
import { AIAgent, AIGNE } from "@aigne/core";
import { OpenAIChatModel } from "@aigne/core/models/openai-chat-model.js";
// Create AI model instance
const model = new OpenAIChatModel({
apiKey: process.env.OPENAI_API_KEY,
model: process.env.DEFAULT_CHAT_MODEL || "gpt-4-turbo",
});
// Create AI agent
const agent = AIAgent.from({
name: "Assistant",
instructions: "You are a helpful assistant.",
});
// AIGNE: Main execution engine of AIGNE Framework.
const aigne = new AIGNE({ model });
// Use the AIGNE to invoke the agent
const userAgent = await aigne.invoke(agent);
// Send a message to the agent
const response = await userAgent.invoke(
"Hello, can you help me write a short article?",
);
console.log(response);
Elastic-2.0
FAQs
The functional core of agentic AI
The npm package @aigne/core receives a total of 2,764 weekly downloads. As such, @aigne/core popularity was classified as popular.
We found that @aigne/core 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.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.

Security News
Node.js 25.4.0 makes require(esm) stable, formalizing CommonJS and ESM compatibility across supported Node versions.