vizra/vizra-adk
Composer 安装命令:
composer require vizra/vizra-adk
包简介
Vizra Agent Development Kit - A comprehensive Laravel package for building intelligent AI agents.
关键字:
README 文档
README
Vizra ADK - AI Agent Development Kit for Laravel
Build intelligent AI agents with Laravel's elegant syntax
Vizra ADK is a comprehensive Laravel package for building autonomous AI agents that can reason, use tools, and maintain persistent memory. Create intelligent, interactive agents that integrate seamlessly with your Laravel application.
✨ Key Features
- 🤖 Multi-Model AI Support - Works with OpenAI, Anthropic, and Google Gemini + more, thanks to prism PHP
- 🎯 Sub-Agent Delegation - Agents can delegate tasks to specialized sub-agents
- 🛠️ Extensible Tool System - Give agents abilities to interact with databases, APIs, and external services
- 🧠 Persistent Memory - Agents remember conversations and learn from interactions across sessions
- 🔄 Agent Workflows - Build complex processes with sequential, parallel, conditional flows and loops
- ⚡ Execution Modes - Multiple trigger modes: conversational, scheduled, webhook, event-driven, and queue jobs
- 📊 Evaluation Framework - Automated quality testing framework for agents at scale with LLM-as-a-Judge
- 💬 Streaming Responses - Real-time, token-by-token streaming for responsive user experiences
- 📈 Comprehensive Tracing - Debug and monitor agent execution with detailed traces
- 🎨 Web Dashboard - Beautiful Livewire v4-powered interface for testing and monitoring
- 🔧 Laravel Native - Built with Laravel patterns: Artisan commands, Eloquent models, service providers
🚀 Quick Start
# Install via Composer composer require vizra/vizra-adk # Publish config and run migrations php artisan vizra:install # Create your first agent php artisan vizra:make:agent CustomerSupportAgent # Start chatting! php artisan vizra:chat customer_support
💻 Basic Usage
<?php use Vizra\VizraADK\Agents\BaseLlmAgent; use Vizra\VizraADK\Facades\Agent; // Define your agent class CustomerSupportAgent extends BaseLlmAgent { protected string $name = 'customer_support'; protected string $description = 'Helps customers with inquiries'; protected string $instructions = 'You are a helpful customer support assistant.'; protected string $model = 'gpt-4o'; protected array $tools = [ OrderLookupTool::class, RefundProcessorTool::class, ]; } // That's it! No registration needed - agents are auto-discovered // Use your agent immediately $response = CustomerSupportAgent::run('I need help with my order') ->forUser($user) ->go();
🛠️ Creating Tools
Tools extend your agent's capabilities:
use Vizra\VizraADK\Contracts\ToolInterface; use Vizra\VizraADK\System\AgentContext; class OrderLookupTool implements ToolInterface { public function definition(): array { return [ 'name' => 'order_lookup', 'description' => 'Look up order information', 'parameters' => [ 'type' => 'object', 'properties' => [ 'order_id' => [ 'type' => 'string', 'description' => 'The order ID', ], ], 'required' => ['order_id'], ], ]; } public function execute(array $arguments, AgentContext $context): string { $order = Order::find($arguments['order_id']); return json_encode([ 'status' => 'success', 'order' => $order->toArray(), ]); } }
🔧 Extending with Macros
Vizra ADK supports Laravel's powerful macro pattern, allowing you to add custom methods to core classes without modifying the package:
use Vizra\VizraADK\Services\AgentBuilder; use Vizra\VizraADK\Facades\Agent; use Illuminate\Database\Eloquent\Model; // Register a macro in your AppServiceProvider::boot() AgentBuilder::macro('track', function (Model $model) { $this->trackedModel = $model; return $this; }); // Step 1: Use the macro when registering the agent Agent::build(CustomerSupportAgent::class) ->track(Unit::find(12)) // Track token usage for analytics ->register(); // Step 2: Run the agent using the executor API $response = CustomerSupportAgent::run('I need help') ->forUser($user) ->go();
Learn more in the Macros Documentation.
📚 Full Documentation
For comprehensive documentation, tutorials, and API reference, visit:
🌟 Why Vizra ADK?
- Laravel First - Built specifically for Laravel developers with familiar patterns
- No Vendor Lock-in - Switch between AI providers without changing your code
- Developer Experience - Elegant API, helpful error messages, and extensive documentation
- Community Driven - Open source with active development and support
🚀 Vizra Cloud Platform (Coming Soon!)
Take your agents to the next level with Vizra Cloud - our professional evaluation and trace analysis platform designed specifically for AI agents built with Vizra ADK.
What's Coming:
- 📊 Cloud Evaluation Runs - Run comprehensive evaluations at scale in the cloud
- 🔍 Interactive Trace Visualization - Debug and understand agent behavior with visual traces
- 📈 Performance Analytics - Track response times, token usage, and quality metrics
- 🔄 Regression Detection - Automatically catch when changes break existing functionality
- 🤝 Team Collaboration - Share evaluation results and insights with your team
- 📜 Evaluation History - Track agent performance over time and across versions
- 🎯 CI/CD Integration - Run evaluations automatically in your deployment pipeline
- 💾 Centralized Results - All evaluation data and traces in one searchable platform
Join the waitlist at vizra.ai →
🔧 Requirements
- PHP 8.2+
- Laravel 11.0+
- MySQL/PostgreSQL
- Livewire ^4.0 (for dashboard UI)
- At least one LLM API key (OpenAI, Anthropic, or Google)
🤝 Community & Support
- Discord Community - Join our Discord for help, discussions, and updates
- GitHub Discussions - Ask questions, share ideas
- GitHub Issues - Report bugs, request features
- Twitter/X - Latest updates and tips
💖 Sponsorship
Support Vizra ADK's Development
Vizra ADK is an open-source project that takes significant time and effort to maintain and improve. If you find this package valuable for your projects, please consider sponsoring its development!
Why Sponsor?
- 🚀 Accelerate Development - Your support helps us dedicate more time to new features
- 📚 Better Documentation - Fund comprehensive tutorials and examples
- 🛠️ Priority Support - Get faster responses to your issues and questions
- ☁️ Shape the Future - Have a direct say in our roadmap and upcoming features
- 💙 Support Open Source - Keep AI development tools accessible to everyone
Sponsor Benefits
- $5+/month - 🎖️ Get a Sponsor badge on your GitHub profile
- $25+/month - 📝 Your logo or name featured in our project README
- $100+/month - 🌐 Logo placement on the Vizra website + 🚀 Access to pre-release builds
- $1,000+/month - 💬 Direct support via your company chat app + All previous benefits
Every contribution, no matter the size, makes a real difference in sustaining this project. Thank you for your support! 🙏
📄 License
Vizra ADK is open-sourced software licensed under the MIT license.
🙏 Credits
Built with ❤️ by the Vizra team and contributors.
Special thanks to:
- Laravel for creating an amazing framework
- Prism PHP for the powerful LLM integration library
- Livewire v4 for making our web dashboard reactive and beautiful
- League CSV for handling CSV in our evaluation framework
- The AI/ML community for pushing boundaries
Ready to build intelligent AI agents?
Get Started → •
Join Cloud Waitlist → •
Become a Sponsor →
vizra/vizra-adk 适用场景与选型建议
vizra/vizra-adk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 33.13k 次下载、GitHub Stars 达 291, 最近一次更新时间为 2025 年 06 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「workflow」 「laravel」 「agents」 「ai」 「mcp」 「embedding」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vizra/vizra-adk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vizra/vizra-adk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vizra/vizra-adk 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Workflow for NetCommons Plugin
Workflow logger
Approval Workflow Engine for Filament
Operational approvals engine for Laravel applications.
Interactive CLI that generates customized Claude Code markdown files (CLAUDE.md, commands, agents) for PHP projects with Symfony, Laravel, Rector, PHPStan, PHP-CS-Fixer, GrumPHP and more.
Alfabank REST API integration
统计信息
- 总下载量: 33.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 291
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-17