Home/Tools/@tpmjs/tools-timeline-from-text

timelineFromTextTool

@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.

Official
research
v0.3.0
MIT

Interactive Playground

Test @tpmjs/tools-timeline-from-text (timelineFromTextTool) 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/tools-timeline-from-text
pnpm add @tpmjs/tools-timeline-from-text
yarn add @tpmjs/tools-timeline-from-text
bun add @tpmjs/tools-timeline-from-text
deno add npm:@tpmjs/tools-timeline-from-text

2. Import the tool

import { timelineFromTextTool } from '@tpmjs/tools-timeline-from-text';

3. Use with AI SDK

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);

Parameters

Available configuration options

Auto-extracted
text
Required
Type: string

The text to extract timeline events from

Schema extracted: 1/1/2026, 1:06:00 AM

README

ERROR: No README data found!

Statistics

Downloads/month

0

Quality Score

67%

Bundle Size

NPM Keywords

tpmjs
research
ai
timeline
dates
events

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai