@easbot/types
v0.1.7
Published
Shared types library for EASBOT ecosystem
Maintainers
Readme
@easbot/types
中文
EASBOT 生态系统的共享类型库,现代化、轻量且高效。
安装
npm install @easbot/types
# 或
pnpm add @easbot/types使用
import type {
AgentConfig,
TaskStatus,
MessageRole,
GenerateOptions
} from '@easbot/types';
// 在代码中使用类型定义
const config: AgentConfig = {
id: 'agent-001',
name: 'My Agent',
model: 'gpt-4',
};特性
- 类型安全: 完整的 TypeScript 类型定义
- AI SDK 兼容: 基于 AI SDK v2 标准
- Zod 验证: 支持运行时类型验证
- Tree-shakeable: 按需导入
开发
# 安装依赖
pnpm install
# 构建
pnpm build
# 测试
pnpm test
# 类型检查
pnpm type-check许可证
MIT
English
A modern, lightweight, and fast library for shared types in the EASBOT ecosystem.
Installation
npm install @easbot/types
# or
pnpm add @easbot/typesUsage
import type {
AgentConfig,
TaskStatus,
MessageRole,
GenerateOptions
} from '@easbot/types';
// Use type definitions in your code
const config: AgentConfig = {
id: 'agent-001',
name: 'My Agent',
model: 'gpt-4',
};Features
- Type Safety: Complete TypeScript type definitions
- AI SDK Compatible: Based on AI SDK v2 standards
- Zod Validation: Runtime type validation support
- Tree-shakeable: Only import what you need
Development
# Install dependencies
pnpm install
# Build
pnpm build
# Test
pnpm test
# Type check
pnpm type-checkLicense
MIT
