PHP code example of assistent / sai

1. Go to this page and download the library: Download assistent/sai library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

assistent / sai example snippets

bash
php artisan sai:install
bash
php artisan storage:link
bash
class Principles extends SaiPrinciples {
    public function __invoke()
    {
        return array_merge(
            array_map(function ($principle) {
                return $principle;
            }, $this->default),
            [
                'Eres el asistente virtual de la empresa gglass'
            ]
        );
    }
}