@agentim/shared

v0.1.0

Published

Shared types, protocol, validators and i18n for AgentIM

Downloads

55

Readme

@agentim/shared

Shared types, WebSocket protocol definitions, validators (Zod), and i18n for AgentIM.

Installation

npm install @agentim/shared

What's Included

  • Types -- TypeScript types for agents, rooms, messages, tasks, and users
  • Protocol -- WebSocket message types for client, gateway, and server communication
  • Validators -- Zod schemas for input validation
  • Constants -- Agent types, routing modes, status codes
  • i18n -- Translation strings for English, Chinese, Japanese, Korean, French, German, and Russian
  • Mentions -- @mention parsing utilities

Usage

import type { Agent, Room, Message } from '@agentim/shared'
import { registerSchema, AGENT_TYPES } from '@agentim/shared'

License

AGPL-3.0 -- see LICENSE