Skip to main content

Built and signed on GitHub Actions

Core tool infrastructure for building BB (Beyond Better) AI assistant tools. This package provides the base classes, interfaces, and types needed to create tools that can be used with the BB AI assistant.

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
88%
Published
2 months ago (0.1.2)

BB Tools Framework

A comprehensive framework for building AI assistant tools. Provides base classes, interfaces, and utilities for creating tools that can interact with projects, manage conversations, and format output for both browser and console environments.

import LLMTool from "@beyondbetter/tools";
import type {
  IProjectEditor,
  IConversationInteraction,
  LLMToolRunResult
} from "@beyondbetter/tools";

class MyTool extends LLMTool {
  get inputSchema() {
    return {
      type: "object",
      properties: {
        param: { type: "string" }
      }
    };
  }

  async runTool(
    interaction: IConversationInteraction,
    toolUse: LLMAnswerToolUse,
    projectEditor: IProjectEditor
  ): Promise<LLMToolRunResult> {
    // Tool implementation
  }
}

Core Components

Types and Interfaces

Formatting

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@beyondbetter/tools

Import symbol

import * as tools from "@beyondbetter/tools";

---- OR ----

Import directly with a jsr specifier

import * as tools from "jsr:@beyondbetter/tools";

Add Package

npx jsr add @beyondbetter/tools

Import symbol

import * as tools from "@beyondbetter/tools";

Add Package

yarn dlx jsr add @beyondbetter/tools

Import symbol

import * as tools from "@beyondbetter/tools";

Add Package

pnpm dlx jsr add @beyondbetter/tools

Import symbol

import * as tools from "@beyondbetter/tools";

Add Package

bunx jsr add @beyondbetter/tools

Import symbol

import * as tools from "@beyondbetter/tools";