fmp-ai-tools
Version:
AI tools for FMP Node API - compatible with Vercel AI SDK, Langchain, OpenAI, and more
20 lines (18 loc) • 466 B
TypeScript
/**
* Tool interface that matches the ai library's expected format
* This is what the ai library produces when using their tool() function
*/
interface Tool {
type: 'function';
function: {
name: string;
description: string;
parameters: {
type: 'object';
properties: Record<string, any>;
required: string[];
};
};
execute: (args: any) => Promise<string>;
}
export type { Tool };