0.1.11 • Published 7 months ago

@bitte-ai/agent-sdk v0.1.11

Weekly downloads
-
License
-
Repository
github
Last release
7 months ago

Bitte Protocol agent-sdk

This is a TypeScript SDK for building agents on the Bitte Protocol.

Usage

Define and validate Agent input parameters by example:

Suppose we want to build an agent that transfers an amount of a token to a recipient (i.e. an ERC20 transfer).

// Declare Route Input
interface Input {
  chainId: number;
  amount: number;
  token: string;
  recipient: Address;
}

const parsers: FieldParser<Input> = {
  chainId: numberField,
  // Note that this is a float (i.e. token units)
  amount: floatField,
  token: addressOrSymbolField,
  recipient: addressField,
};

Then the route could be implemented as in examples/erc20transfer.ts - which utilizes other utils from this package.

Development

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.1.33. Bun is a fast all-in-one JavaScript runtime.

0.1.11

7 months ago

0.1.10

8 months ago

0.0.2

8 months ago

0.1.9

10 months ago

0.1.8

10 months ago

0.1.7

10 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago