Home/Tools/@tpmjs/official-policy-doc-format

policyDocFormatTool

@tpmjs/official-policy-doc-format

Formats HR policy content into standardized policy document structure

Official
hr
v0.1.1
MIT

Interactive Playground

Test @tpmjs/official-policy-doc-format (policyDocFormatTool) with AI-powered execution

0/2000 characters

Installation & Usage

Install this tool and use it with the AI SDK

1. Install the package

npm install @tpmjs/official-policy-doc-format
pnpm add @tpmjs/official-policy-doc-format
yarn add @tpmjs/official-policy-doc-format
bun add @tpmjs/official-policy-doc-format
deno add npm:@tpmjs/official-policy-doc-format

2. Import the tool

import { policyDocFormatTool } from '@tpmjs/official-policy-doc-format';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { policyDocFormatTool } from '@tpmjs/official-policy-doc-format';

const result = await generateText({
  model: openai('gpt-4o'),
  tools: { policyDocFormatTool },
  prompt: 'Your prompt here...',
});

console.log(result.text);

Signature

(policyContent: string, metadata?: { owner: string; title: string; version: string; approvedBy: string; department: string }) => Promise<unknown>

Tags

compliance
content
doc
document
documentation
format
formats
hr
official
policy
standardized
structure
tpmjs

Parameters

Available configuration options

Auto-extracted
policyContent
Required
Type: string

Raw policy content to format

metadata
Optional
Type: object

Policy metadata (title, owner, dates)

Schema extracted: 3/1/2026, 4:28:27 AM

README

ERROR: No README data found!

Statistics

Downloads/month

126

GitHub Stars

0

Quality Score

81%

Bundle Size

NPM Keywords

tpmjs
hr
policy
documentation
compliance

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai