@nio-ai/agent-sdk
v0.0.1
Published
一个可扩展的 Agent 开发库
Readme
Agent SDK
一个可扩展的 Agent 开发库,使用 TypeScript 开发。
安装
npm install agent-sdk或者使用 yarn:
yarn add agent-sdk使用方法
import { Agent } from 'agent-sdk';
// 创建一个新的 Agent 实例
const agent = new Agent({
name: 'my-agent',
version: '1.0.0',
description: '我的第一个 Agent'
});
// 使用 Agent
console.log(agent.getName()); // 输出: my-agent
console.log(agent.getVersion()); // 输出: 1.0.0
console.log(agent.getDescription()); // 输出: 我的第一个 Agent开发
克隆仓库并安装依赖:
git clone https://github.com/yourusername/agent-sdk.git
cd agent-sdk
npm install构建项目
npm run build运行测试
npm test持续测试(监视模式)
npm run test:watch许可证
ISC
