Skip to content

fmp-ai-tools v0.0.5

Choose a tag to compare

@e-roy e-roy released this 10 Aug 19:42
· 73 commits to main since this release

Add tools for @openai/agents package.

import { Agent } from '@openai/agents';
import { fmpTools } from 'fmp-ai-tools/openai';

const agent = new Agent({
  name: 'Financial Analyst',
  instructions: 'You are a financial analyst with access to real-time market data.',
  tools: fmpTools,
});

const result = await agent.run({
  messages: [
    {
      role: 'user',
      content:
        'Get the current stock quote for Apple (AAPL) and show me their latest balance sheet',
    },
  ],
});