0.1.5 • Published 6 months ago

@wabee_ai/sdk v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@wabee_ai/sdk

JavaScript/TypeScript SDK for building and integrating Wabee AI tools.

Installation

npm install @wabee_ai/sdk

Quick Start

import { simpleTool } from '@wabee_ai/sdk';
import { z } from 'zod';

// Define input schema
const additionSchema = z.object({
    x: z.number(),
    y: z.number()
});

// Create tool client
const add = simpleTool('addition', additionSchema, {
    host: 'localhost',
    port: 50051
});

// Use the tool
async function main() {
    const [result, error] = await add({ x: 5, y: 3 });
    if (error) {
        console.error('Error:', error);
    } else {
        console.log('Result:', result);
    }
}

Features

  • Simple tool creation with TypeScript support
  • Input validation using Zod schemas
  • gRPC communication with Wabee tools
  • Comprehensive error handling
  • JSON and Protocol Buffer support

Documentation

For complete documentation, visit https://documentation.wabee.ai

License

MIT License - see LICENSE file for details

0.1.5

6 months ago

0.1.4

7 months ago

0.1.3

7 months ago

0.1.2

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago