@tpmjs/official-offer-letter-draft
Generates offer letter content from compensation and role details
Test @tpmjs/official-offer-letter-draft (offerLetterDraftTool) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/official-offer-letter-draftpnpm add @tpmjs/official-offer-letter-draftyarn add @tpmjs/official-offer-letter-draftbun add @tpmjs/official-offer-letter-draftdeno add npm:@tpmjs/official-offer-letter-draftimport { offerLetterDraftTool } from '@tpmjs/official-offer-letter-draft';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { offerLetterDraftTool } from '@tpmjs/official-offer-letter-draft';
const result = await generateText({
model: openai('gpt-4o'),
tools: { offerLetterDraftTool },
prompt: 'Your prompt here...',
});
console.log(result.text);(role: { type: string; title: string; manager: string; isRemote: boolean; location: string }, offer: { bonus: { type: string; target: number }; equity: { shares: number; percentage: number; vestingYears: number }; salary: number; benefits: string[]; currency: string }, candidate: { name: string; email: string; address: string }) => Promise<unknown>Available configuration options
candidateobjectCandidate information (name, address)
offerobjectOffer details (salary, equity, benefits)
roleobjectRole details (title, department, manager)
Schema extracted: 3/1/2026, 4:28:01 AM
ERROR: No README data found!
Downloads/month
0
Quality Score