-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
The goal of this project is to bring the https://github.com/wordpress/php-ai-client into WordPress, with all the necessary adaptors and such in place for it to work properly — including things like handling the HTTP layer.
This description will be updated as we have discussions here regarding the MVP, including a task breakdown of the subsequent PRs to be delivered. The order is intended to be sequenced, though some work may be done in parallel.
MVP Breakdown
HTTP Transport
- Build WP Client Adapter (see Adds HTTP Client Adapter #2)
The PHP AI Client uses https://httplug.io as the means of discovering which HTTP transport system is available. For compatibility with WordPress we will need to build an adapter. We can look at the Guzzle Adapter for inspiration.
API Credentials Management (see #6)
- Implement storage for API credentials and pass credentials to PHP AI Client
- Implement settings page to manage API credentials that is only added once (even if SDK loaded multiple times)
REST API
- Build Prompt REST endpoints
To work in the browser we'll need a stateless low-level REST API for creating prompts and interacting with the AI Client (see feat/ Build WordPress REST API endpoints for AI client #8)
Prompt Builder (see #12)
- Create a
Prompt_Builder
class that extends the PHP AI ClientPromptbuilder
and provides snake case versions of the methods - Add support for pulling in Ability API abilities and converting them to function declarations
Metadata
Metadata
Assignees
Labels
No labels