@tpmjs/tools-timeline-from-text
Extract dated events from unstructured text and return a normalized, chronologically sorted timeline with confidence scores. Supports various date formats including specific dates, partial dates, and relative references.
Test @tpmjs/tools-timeline-from-text (timelineFromTextTool) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-timeline-from-textpnpm add @tpmjs/tools-timeline-from-textyarn add @tpmjs/tools-timeline-from-textbun add @tpmjs/tools-timeline-from-textdeno add npm:@tpmjs/tools-timeline-from-textimport { timelineFromTextTool } from '@tpmjs/tools-timeline-from-text';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { timelineFromTextTool } from '@tpmjs/tools-timeline-from-text';
const result = await generateText({
model: openai('gpt-4o'),
tools: { timelineFromTextTool },
prompt: 'Your prompt here...',
});
console.log(result.text);Available configuration options
textstringThe text to extract timeline events from
Schema extracted: 1/1/2026, 1:06:00 AM
ERROR: No README data found!
Downloads/month
0
Quality Score