ai-sdk-development

Build Laravel AI SDK integrations with agents, streaming, and provider failover.

2|Updated Mar 3, 2025
One-click install
npx skills add https://github.com/dspangenberg/opsc --skill ai-sdk-development-dspangenberg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-sdk-development
Source: https://github.com/dspangenberg/opsc/tree/main/.junie/skills/ai-sdk-development
Command: npx skills add https://github.com/dspangenberg/opsc --skill ai-sdk-development-dspangenberg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the complexity of building AI-powered Laravel features by giving you a single workflow for agents, media generation, embeddings, retrieval, and provider switching.

Core Features & Use Cases

  • Agent Development: Build chatbots, assistants, and structured-output agents with conversation memory, tools, and streaming.
  • Multimodal AI: Generate images and audio, transcribe speech, and work with embeddings, reranking, files, and vector stores.
  • Production Patterns: Handle provider selection, failover, queueing, broadcasting, and deterministic testing with fakes and assertions.
  • Use Case: A team can use this Skill to create a support copilot that answers questions, searches knowledge bases, streams responses, and falls back to another provider when one is unavailable.

Quick Start

Use this skill to design a Laravel AI feature that matches the requested capability, selects the right provider, and applies the documented testing pattern.

Frequently Asked Questions about ai-sdk-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a chatbot in Laravel with conversation memory and streaming?

Build Laravel chatbots with conversation memory and streaming by defining agents in the Laravel\Ai namespace, applying documented capability patterns, and configuring real-time streaming responses for interactive outputs.

Can I implement provider failover for AI features in Laravel?

Implement provider failover in Laravel AI features by selecting providers via Lab enums, allowing your application to automatically switch to a backup provider when the primary service becomes unavailable.

How do I test AI agents and chatbots deterministically in Laravel?

Test Laravel AI agents deterministically using the SDK's built-in fake-based testing support, which provides fakes and assertions to validate agent behavior and structured outputs without calling live providers.

Does the Laravel AI SDK support multimodal features like image generation and transcription?

The Laravel AI SDK supports multimodal features including image generation, audio generation, speech transcription, embeddings, reranking, files, and vector stores within the Laravel\Ai namespace.

What is the best way to handle structured outputs and embeddings in Laravel?

Handle structured outputs and embeddings in Laravel using documented capability patterns within the Laravel\Ai namespace, ensuring structured data extraction and vector storage operations integrate smoothly with agents.

How do I queue and broadcast AI agent responses in Laravel?

Queue and broadcast Laravel AI agent responses by applying the SDK's production patterns for queueing and broadcasting, enabling asynchronous processing and real-time updates for chatbots and assistants.