Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@assistant-ui/core

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@assistant-ui/core

Framework-agnostic core runtime for assistant-ui

Source
npmnpm
Version
0.2.3
Version published
Weekly downloads
533K
17.81%
Maintainers
2
Weekly downloads
 
Created
Source

@assistant-ui/core

npm version GitHub stars

The framework-agnostic core of assistant-ui. Defines the shared types, runtime interfaces, adapter contracts, and React bindings that the distribution packages re-export.

Most users do not install @assistant-ui/core directly. Reach for the distribution that matches your target:

DistributionUse this for
@assistant-ui/reactWeb applications.
@assistant-ui/react-nativeReact Native apps.
@assistant-ui/react-inkTerminal/Ink apps.

core is published so that integration libraries (for example @assistant-ui/react-ag-ui) can depend on the runtime types without pulling in DOM or native primitives.

Installation

npm install @assistant-ui/core

Usage

import { tool, ModelContextRegistry } from "@assistant-ui/core";
import { z } from "zod";

const registry = new ModelContextRegistry();

registry.addTool({
  toolName: "getWeather",
  ...tool({
    parameters: z.object({ city: z.string() }),
    execute: async ({ city }) => fetchWeather(city),
  }),
});

Sub-paths

@assistant-ui/core exposes ., ./react, ./store, and ./internal sub-paths. The ./react sub-path holds the React hooks and providers consumed by @assistant-ui/react and @assistant-ui/react-native.

Full reference for message types, runtime interfaces, and adapter contracts at assistant-ui.com/docs/architecture.

Keywords

assistant

FAQs

Package last updated on 21 May 2026

Did you know?

Socket

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.

Install

Related posts