tool-calling

Building a Laravel AI Agent (I): Human-in-the-Loop Approval

Autonomous AI agents that can process refunds, delete records, or send external emails are making irreversible decisions on your behalf. This guide implements the confirmation gate pattern in Laravel using Prism PHP: intercept tool calls before execution, serialise the proposed action to a pending approval record, and resume the agent loop only after a human confirms. The result is an agent architecture safe enough to run against live business data.

Building a Laravel AI Agent (I): Human-in-the-Loop Approval Read More »

Building Agentic Laravel Apps with Prism PHP

Laravel 13 ships a first-party AI SDK for text generation and basic completions. Prism PHP is the layer you reach for when your requirements move past that baseline: multi-provider tool calling, agentic loop control, and RAG pipelines. This guide covers installation, building Stripe and Twilio tools, pgvector-backed semantic search, and SSE streaming — all with production-grade error handling.

Building Agentic Laravel Apps with Prism PHP Read More »

Scroll to Top