
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
@agentica/pg-selector
Advanced tools
A library that significantly accelerates AI function selection through vector embeddings.
@agentica/pg-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-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-selector typia
npx typia setup
To use pg-selector, you need:
PostgreSQL
database connected to the connector-hive
serverPostgreSQL
First, initialize the library with your connector-hive server:
import { AgenticaPgVectorSelector } from 'pg-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
Super A.I. Chatbot agent by Swagger Document
We found that @agentica/pg-selector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.