@thomasdavis/compliments
v0.0.2
Published
AI SDK tools for wild compliments - some sweet, some savage
Maintainers
Readme
@thomasdavis/compliments
AI SDK tools for compliments
Installation
pnpm add @thomasdavis/complimentsTools
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/compliments';
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
