AI SDK tools for unsandbox.com - secure code execution in 42+ programming languages
npm install @thomasdavis/unsandboxAI SDK tools for unsandbox
``bash`
pnpm add @thomasdavis/unsandbox
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
`typescript
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);
`
`bashInstall dependencies
pnpm install
Publishing
1. Update the version in
package.json
2. Build the package: pnpm build
3. Publish to npm: pnpm publish --access public`MIT