sumeetghimire's avatar

Laravel AI Orchestrator AI with Contextual Memory and Multi-Provider Support

Laravel AI Orchestrator is a Laravel package similar to prism, It supports multiple providers like OpenAI, Anthropic, Gemini, and Ollama with automatic fallback if one fails, structured outputs for clean data handling, and optional Contextual Memory that lets your AI remember previous conversations using cache or database. You can easily test and manage everything with built-in Artisan commands (ai:test, ai:usage, ai:status, etc.) and toggle memory via .env. This is a new package I’ve built and tried for the first time, aiming to create a Laravel-native AI layer that combines Prism’s structured approach with advanced orchestration and memory support.

Example : Ai::remember('support-session-42') ->prompt('What did I decide about cache TTL earlier?') ->toText();

Github : /sumeetghimire/Laravel-AI-Orchestrator

0 likes
2 replies
sumeetghimire's avatar

Haha thanks 😄 that’s exactly what I was hoping for! Go grab that API key and give it a spin would love your feedback once you try it out, especially on the contextual memory part!

Please or to participate in this conversation.