
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@ag-ui/core
Advanced tools
TypeScript definitions & runtime schemas for the **Agent-User Interaction (AG-UI) Protocol**.
TypeScript definitions & runtime schemas for the Agent-User Interaction (AG-UI) Protocol.
@ag-ui/core delivers the strongly-typed building blocks that every other AG-UI package is built on: message & state models, run inputs and the full set of streaming event types.
# types and constants only — no runtime dependencies
npm install @ag-ui/core
pnpm add @ag-ui/core
yarn add @ag-ui/core
# to use the validators on @ag-ui/core/schemas, add zod (3.25.18+ or 4.x)
npm install @ag-ui/core zod
zod is an optional peer dependency: the main entry never loads it, so an application that only needs the types installs nothing else.
Message, Tool, Context, RunAgentInput, State …import { EventType } from "@ag-ui/core";
// Validators live on the /schemas subpath and need zod installed; the main
// entry is types and constants only, so type-only consumers need no zod.
import { EventSchemas } from "@ag-ui/core/schemas";
// Validate an incoming event
EventSchemas.parse({
type: EventType.TEXT_MESSAGE_CONTENT,
messageId: "msg_123",
delta: "Hello, world!",
});
docs/conceptsdocs/sdk/js/coreBug reports and pull requests are welcome! Please read our contributing guide first.
MIT © 2025 AG-UI Protocol Contributors
FAQs
TypeScript definitions & runtime schemas for the **Agent-User Interaction (AG-UI) Protocol**.
The npm package @ag-ui/core receives a total of 0 weekly downloads. As such, @ag-ui/core popularity was classified as not popular.
We found that @ag-ui/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.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.