Download the PHP package webgrafia/cheshire-cat-sdk-laravel without Composer
On this page you can find all versions of the php package webgrafia/cheshire-cat-sdk-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webgrafia/cheshire-cat-sdk-laravel
More information about webgrafia/cheshire-cat-sdk-laravel
Files in webgrafia/cheshire-cat-sdk-laravel
Package cheshire-cat-sdk-laravel
Short Description Laravel SDK for interacting with Cheshire Cat AI API
License GPL-3.0
Informations about the package cheshire-cat-sdk-laravel
Cheshire Cat SDK for Laravel
Laravel SDK for interacting with Cheshire Cat AI API, providing seamless integration with endpoints for messages, user management, settings, memory, plugins, and more.
API Reference and Versioning
This SDK is built to interact with the Cheshire Cat API. For a comprehensive list of all available endpoints, their parameters, and expected responses, please refer to the OpenAPI specification file.
Version Compatibility: The openapi.json
file also indicates the specific version of the Cheshire Cat API that this SDK is designed to work with. This ensures compatibility and helps you understand the features and functionalities supported by the SDK.
Current API Version: 1.9.0 (as per openapi.json)
Installation
-
Install the package via Composer:
-
Publish the configuration file:
- Update
.env
with Cheshire Cat API credentials:
Default Routes
The SDK provides 2 default route /meow/status
and /meow/hello
that can be used to check the status of the Cheshire Cat API.
Usage
To check the status of the API, simply navigate to http://your-app-domain/meow/status
in your browser.
To say Hello to Cheshire simply navigate to http://your-app-domain/meow/hello
in your browser.
This routes will return a message indicating whether the API connection was successful or not, along with the status response or any error messages.
Configuration
The published configuration file is located at config/cheshirecat.php
:
Usage
Use the CheshireCat
Facade or the CheshireCat
class directly.
Examples
Methods
1. Status Check
2. Send a Message
3. Get Available Permissions
4. User Management
-
Create a User
-
Get Users
-
Update a User
- Delete a User
5. Manage Settings
-
Get All Settings
-
Create a Setting
-
Update a Setting
- Delete a Setting
6. Memory Management
-
Get Memory Points
-
Create a Memory Point
- Delete a Memory Point
7. Plugin Management
-
Get Plugins
-
Install a Plugin
- Toggle a Plugin
WebSocket Connection
The SDK supports WebSocket connections for real-time communication with the Cheshire Cat AI server.
WebSocket Basic Usage Example
Rabbit Hole File Upload
Upload a file to the API via the /rabbithole/
endpoint.
Parameters:
$filePath
- The path to the file to be uploaded.$fileName
- The name of the file.$contentType
- MIME type of the file (e.g.,application/pdf
).$metadata
- Associative array containing optional metadata related to the file.
Response:
- Returns an HTTP response object containing the details of the API's response.
Custom route for Testing
example of route in web.php for testing
Contributing
Feel free to fork this repository and submit pull requests.
License
This package is open-source software licensed under the GNU GENERAL PUBLIC LICENSE.