Welcome to the Brainstack Tools SDK – a versatile toolkit designed to provide essential functionalities for various applications.
Brainstack Tools SDK offers a comprehensive set of tools and utilities that can be integrated into your software projects. It provides a streamlined way to manage and utilize a variety of tools, making your development process more efficient and effective.
To install Brainstack Tools SDK, run the following command:
npm install @brainstack/tools
or if you're using yarn
:
yarn add @brainstack/tools
Here's a quick example to get you started with Brainstack Tools SDK:
import { ToolSDK } from '@brainstack/tools';
const sdk = new ToolSDK();
// Add a new tool
sdk.addTool({
tool: "exampleTool",
description: "This is an example tool.",
argument: "exampleArg",
examples: [
{
intention: "Example intention",
expectation: "Example expectation",
outcome: "Example outcome",
usage: "exampleTool(exampleArg)"
}
]
});
// Generate tool descriptions
console.log(sdk.generateDescriptions());
- Tool Management: Easily add and manage tool descriptions.
- JSON Import: Import tool configurations from JSON.
- Description Generation: Generate formatted descriptions for your tools.
You can find more detailed API documentation in the dist/index.d.ts
file.
To build the SDK, run:
npm run build
This will compile the TypeScript source files to JavaScript and generate type definitions in the dist
folder.
Contributions are welcome! Feel free to submit pull requests or open issues to improve the SDK or add new functionalities.
This project is licensed under the MIT License.