Installation
Not released yet
The packages are not on crates.io yet. Until the first release, add them from GitHub.
Add the crate with the providers you need. Each provider is a Cargo feature, so your application only compiles the drivers it uses. The first provider is Anthropic:
shell
cargo add laravel-ai-rust --git https://github.com/leonhausdorf/laravel-ai-rust --features anthropicThen register the service provider in src/app.rs:
rust
use laravel::Application;
Application::configure()
.with_providers(|providers| {
providers.add(laravel_ai::AiServiceProvider);
})