
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@agentica/pg-vector-selector
Advanced tools
[](https://github.com/wrtnlabs/pg-vector-selector/blob/master/LICENSE) [](https://www.npmjs.com/package/pg-vector-select
A library that significantly accelerates AI function selection through vector embeddings.
@agentica/pg-vector-selector drastically improves function selection speed compared to traditional LLM-based methods. By leveraging vector embeddings and semantic similarity, it can identify the most appropriate functions for a given context multiple times faster than conventional approaches.
import { Agentica } from "@agentica/core";
import { AgenticaPgVectorSelector } from "@agentica/pg-vector-selector";
import typia from "typia";
// Initialize with connector-hive server
const selectorExecute = AgenticaPgVectorSelector.boot<"chatgpt">(
"https://your-connector-hive-server.com"
);
const agent = new Agentica({
model: "chatgpt",
vendor: {
model: "gpt-4o-mini",
api: new OpenAI({
apiKey: process.env.CHATGPT_API_KEY,
}),
},
controllers: [
await fetch(
"https://shopping-be.wrtn.ai/editor/swagger.json",
).then(r => r.json()),
typia.llm.application<ShoppingCounselor>(),
typia.llm.application<ShoppingPolicy>(),
typia.llm.application<ShoppingSearchRag>(),
],
config: {
executor: {
select: selectorExecute,
}
}
});
await agent.conversate("I wanna buy MacBook Pro");
npm install @agentica/core @agentica/pg-vector-selector typia
npx typia setup
To use pg-vector-selector, you need:
PostgreSQL database connected to the connector-hive serverPostgreSQLFirst, initialize the library with your connector-hive server:
import { AgenticaPgVectorSelector } from "pg-vector-selector";
const selectorExecute = AgenticaPgVectorSelector.boot<YourSchemaModel>(
"https://your-connector-hive-server.com"
);
Select the most appropriate functions for a given context:
const agent = new Agentica({
model: "chatgpt",
vendor: {
model: "gpt-4o-mini",
api: new OpenAI({
apiKey: process.env.CHATGPT_API_KEY,
}),
},
controllers: [
await fetch(
"https://shopping-be.wrtn.ai/editor/swagger.json",
).then(r => r.json()),
typia.llm.application<ShoppingCounselor>(),
typia.llm.application<ShoppingPolicy>(),
typia.llm.application<ShoppingSearchRag>(),
],
config: {
executor: {
select: selectorExecute,
}
}
});
await agent.conversate("I wanna buy MacBook Pro");
FAQs
[](https://github.com/wrtnlabs/pg-vector-selector/blob/master/LICENSE) [](https://www.npmjs.com/package/pg-vector-select
The npm package @agentica/pg-vector-selector receives a total of 14 weekly downloads. As such, @agentica/pg-vector-selector popularity was classified as not popular.
We found that @agentica/pg-vector-selector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.