@thomasdavis/unsandbox
v0.0.3
Published
AI SDK tools for unsandbox.com - secure code execution in 42+ programming languages
Maintainers
Readme
@thomasdavis/unsandbox
AI SDK tools for unsandbox
Installation
pnpm add @thomasdavis/unsandboxTools
This package provides 2 tools for the AI SDK:
- exampleTool: An example tool - customize this for your use case
- anotherTool: Another example tool - add your implementation here
Usage
import { exampleTool } from '@thomasdavis/unsandbox';
import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
const result = await generateText({
model: openai('gpt-4'),
prompt: 'Process this text for me',
tools: {
exampleTool,
},
});
console.log(result.text);Development
# Install dependencies
pnpm install
# Build the package
pnpm build
# Type-check
pnpm type-check
# Watch mode
pnpm devPublishing
- Update the version in
package.json - Build the package:
pnpm build - Publish to npm:
pnpm publish --access public - Your tools will appear on tpmjs.com within 2-15 minutes
License
MIT
