GPT agent framework for API invocation
Top 47.9% on sourcepulse
WorkGPT is an agent framework for orchestrating LLM-driven task execution via API calls. It targets developers building autonomous agents that can interact with external services, offering a flexible way to integrate any API described by an OpenAPI specification. The primary benefit is enabling LLMs to perform complex, multi-step actions by abstracting API interactions into callable functions.
How It Works
WorkGPT leverages an agent-runner pattern. An OpenAiAgent
(or similar LLM interface) receives a directive and a list of available APIs. APIs are exposed as local functions to the LLM, with authentication handled automatically based on provided keys. The LLM converses with itself, selecting and invoking appropriate API functions to fulfill the directive. A WorkGptRunner
manages this interaction loop, and custom "finishing program" APIs can be defined to structure output.
Quick Start & Requirements
npm install workgpt
IPINFO_API_KEY
).Highlighted Details
TextBrowser
API using Puppeteer for web crawling, extracting data from raw HTML text.Maintenance & Community
team-openpm
.Licensing & Compatibility
Limitations & Caveats
The framework relies heavily on the LLM's ability to correctly interpret OpenAPI specifications and generate valid API calls. The web crawling example uses Puppeteer, which may require additional setup and has its own resource footprint.
2 years ago
1 week