Requirements
- PHP 8.3 or higher
- Laravel 11.0 or higher
Installation Steps
- Install the package via Composer:
- Publish the configuration file:
Configuration
After installation, you can configure the package in your.env file:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
How to install and configure the toolbox package
composer require jordan-price/toolbox
php artisan vendor:publish --tag="toolbox-config"
.env file:
# Weather Tool (optional)
WEATHER_API_KEY=your_api_key
use EchoLabs\Prism\Prism;
use EchoLabs\Prism\Enums\Provider;
use EchoLabs\Prism\Enums\ToolChoice;
use JordanPrice\Toolbox\Tools\Weather\WeatherTool;
$weatherTool = new WeatherTool();
$prism = Prism::text()
->using(Provider::Anthropic, 'claude-3-5-sonnet-latest')
->withPrompt('What is the weather in London?')
->withTools([$weatherTool]) // Pass the tool instance
->toolChoice(ToolChoice::Any);
$response = $prism->generate();