@elyracode/stack-laravel-ai
v0.7.5
Published
Elyra extension for Laravel AI SDK -- agents, sub-agents, tools, structured output, embeddings, and more
Downloads
3,868
Maintainers
Readme
@elyracode/stack-laravel-ai
Elyra extension for the Laravel AI SDK (laravel/ai) -- the complete reference for building AI-powered Laravel applications.
Install
elyra install npm:@elyracode/stack-laravel-aiWhat's included
Comprehensive knowledge of the entire Laravel AI SDK:
- Agents: Creating, prompting, conversation context, RemembersConversations
- Sub-Agents: Multi-agent delegation with CanActAsTool, isolated execution
- Tools: Custom tools, provider tools (WebSearch, WebFetch, FileSearch), SimilaritySearch
- Structured Output: JSON schemas with nested objects and arrays
- Streaming: SSE, Vercel AI SDK protocol, broadcasting
- Embeddings: Vector columns (pgvector), similarity queries, caching
- Vector Stores: File indexing, metadata, FileSearch integration
- Images: Generation, reference images, storage
- Audio: TTS, STT, diarization
- Reranking: Semantic reordering with Cohere, Jina, VoyageAI
- Files: Provider file storage, retrieval, deletion
- Testing: Faking agents, images, audio, embeddings, reranking, files, stores
- Configuration: Provider attributes, middleware, failover, provider options
- Events: Full lifecycle event coverage
Usage
Just ask Elyra about building AI features in Laravel:
> Build a customer service system with a main agent that routes to refund and support sub-agents
> Create an agent that analyzes sales transcripts with structured output
> Set up RAG with embeddings and vector stores for my knowledge base
> Add streaming AI responses to my Laravel app with broadcastingThe agent generates complete, working Laravel AI SDK code following official patterns.
