Laravel SDK for AI agent creation and management
Top 73.3% on sourcepulse
LarAgent provides a framework for integrating AI agents into Laravel applications, simplifying the creation and management of conversational AI functionalities. It targets Laravel developers seeking to leverage LLMs within their existing projects, offering an Eloquent-like syntax for agent definition and interaction.
How It Works
LarAgent abstracts LLM interactions through an Agent class, allowing developers to define agent behavior, models, and chat history management using familiar Laravel patterns. Agents can be configured with specific instructions, prompts, and tools (function calling), enabling complex AI-driven tasks. The framework supports various chat history storage mechanisms and offers a flexible event system for customizing agent lifecycles.
Quick Start & Requirements
composer require maestroerror/laragent
config/laragent.php
and .env
for API keys.Highlighted Details
php artisan make:agent
).#[Tool]
attribute) or classes.respondStreamed
, streamResponse
).Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project is under active development, with some features marked as "Planned" or "@todo". While designed for Laravel, standalone usage outside of Laravel is supported but requires consulting separate documentation.
2 days ago
1 day