Skip to content

fmp-tools v0.0.1 - Initial Release

Choose a tag to compare

@e-roy e-roy released this 08 Aug 19:53
· 82 commits to main since this release

This PR adds a new FMP Tools library that provides AI framework integration for the fmp-node-api library.

Changes

  • Added fmp-tools package with tools for AI frameworks
  • Added @fmp/types internal package for shared TypeScript types
  • Added Vercel AI SDK integration with streaming support
  • Added example Vercel AI chat application
  • Updated Turbo and ESLint to latest versions
  • Enhanced monorepo structure and dependencies
  • Added comprehensive test suite and documentation

Usage

import { openai } from '@ai-sdk/openai';
import { streamText, convertToModelMessages } from 'ai';
import { fmpTools } from 'fmp-tools/vercel-ai';

const result = streamText({
  model: openai('gpt-4o-mini'),
  messages: convertToModelMessages(messages),
  tools: fmpTools,
});

The tools cover most FMP API endpoints including quotes, financial statements, market data, economic indicators, ETFs, calendars, and trading activity.