JS/TS tools for OpenAI function calling
Top 90.1% on sourcepulse
This library provides JavaScript/TypeScript tools to simplify the integration of OpenAI's function calling capabilities into applications. It offers pre-built tools for common tasks like map display, geocoding, web searching, file system access, and code execution, enabling developers to build more interactive and capable AI agents.
How It Works
The library leverages OpenAI's function calling API by providing a set of utility functions that generate the necessary JSON schemas for various tools. These schemas are then passed to the OpenAI API during chat completion requests. When the model decides to use a tool, it returns a function call with arguments. The library includes wrappers to execute these functions and feed the results back into the conversation, facilitating a seamless tool-use workflow.
Quick Start & Requirements
npm install openai-function-calling-tools
Highlighted Details
ShowPoisOnMap
), reverse geocoding (ReverseGeocode
), time (Clock
), basic arithmetic (Calculator
), Google/Bing/Serper web search, image search, file system access (fs
), web browsing (webbrowser
), SQL execution, and JavaScript interpretation.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
1 year ago
1 day