
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
@gensx/vercel-ai
Advanced tools
Vercel AI SDK for GenSX
npm install @gensx/vercel-ai
@gensx/coreThis package requires @gensx/core to be installed as a peer dependency.
npm install @gensx/core
import * as gensx from "@gensx/core";
import { generateText, streamText } from "@gensx/vercel-ai";
@Component()
async function ChatBot({ userInput }: { userInput: string }): Promise<string> {
const result = await generateText({
messages: [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: userInput },
],
model: "gpt-4o",
temperature: 0.7,
});
return result.text;
}
This package provides utilities to convert GenSX ToolBox definitions to Vercel AI SDK ToolSet format for use with AI models.
import { createToolBox } from "@gensx/core";
import { asToolSet, addAsToolSetMethod } from "@gensx/vercel-ai";
import { generateText } from "@gensx/vercel-ai";
import { openai } from "@ai-sdk/openai";
import { z } from "zod/v4";
// Define a ToolBox using GenSX's createToolBox
const myToolBox = createToolBox({
weather: {
params: z.object({
location: z.string().describe("The location to get weather for"),
}),
result: z.object({
temperature: z.number(),
condition: z.string(),
}),
},
});
const toolSet = asToolSet(myToolBox);
// Use with Vercel AI SDK
const result = await generateText({
messages: [
{
role: "system",
content: "You are a helpful assistant that can use tools.",
},
{ role: "user", content: "What's the weather like in Seattle?" },
],
model: openai("gpt-4o-mini"),
tools: toolSet, // Use the converted ToolSet
});
The asToolSet function converts GenSX ToolBox definitions to Vercel AI SDK Tool format, automatically handling the integration with GenSX's executeExternalTool function for proper workflow execution.
FAQs
Vercel AI SDK for GenSX.
We found that @gensx/vercel-ai 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 found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.