SShortSingh.
Back to feed

Laravel Launches First-Party AI SDK to Simplify AI Integration for Developers

0
·33 views

Laravel has released its first official AI SDK, a first-party package designed to help developers integrate AI capabilities into Laravel applications without relying on provider-specific HTTP calls. The SDK provides a unified interface for configuring providers such as OpenAI, Anthropic, Gemini, and others, while supporting features like structured output, tool access, conversation memory, and usage tracking. Developers can install it via Composer and publish its configuration early to keep provider and model choices transparent across environments. The SDK introduces an 'agent' concept — dedicated PHP classes that encapsulate instructions, context, and model settings — encouraging teams to start with narrow, well-defined features rather than broad AI assistants. Laravel positions the SDK as an integration layer, leaving application logic, authorization, validation, and persistence firmly in the developer's hands.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Five-Person AI Subscriptions Hinge on Break-Even Hours, Not Seat Price

A per-seat price does not capture the full cost of adopting an AI tool, nor show whether it pays off for a team. The author suggests the key test is whether a five-person team saves enough reviewed work time to cover the subscription and onboarding overhead. Using public US pricing checked on November 11, 2026, annual five-seat costs were roughly $1,200 for ChatGPT Business and $1,500 for Claude Team, with onboarding at an assumed $400 bringing first-year totals to $1,600 and $1,900. A simple break-even formula, monthly subscription cost divided by loaded hourly labor cost, shows ChatGPT Business needs about 3.13 team-hours saved per month. The author recommends a measured pilot on three recurring tasks, accounting for review time and failed attempts, alongside data, access, and integration considerations.

0
ProgrammingDEV Community ·

Claude Code can build an internal app and propose it to an osFoundry Room for approval

A guide explains how Claude Code can write a small internal tool, such as a standup timer, and propose it to a cloud Room in osFoundry. The proposal is not visible in the Room until the owner reviews the source files and clicks Approve and create. Once approved, the app appears as a tab in the Room's app bar that anyone in the Room can open. Claude Code connects to osFoundry through a login approved once per workspace, with read and write scopes, and it can verify results by reading app status. The Room must be a cloud Room assigned to a project the connection belongs to, and tool permissions can be restricted to read-only.

0
ProgrammingDEV Community ·

Eval gate passed at 97% because the agent's own answers were used as expected results

A support agent approved 37 refunds between $200 and $250 without human review over six weeks, violating a policy requiring approval above $200. A typo in a prompt edit had raised the limit in the agent's config, and the eval gate still passed 11 releases in a row. The gate missed the error because many expected answers had been recorded from the agent's own output, so the agent and the eval agreed with each other while both were wrong. The author concludes that expected answers must come from the policy or other source of truth rather than the agent, and that evals should not share the agent's config. After rewriting the cases from policy, seven previously encoded cases were found wrong and four recent releases failed, which had previously been considered good. The rebuilt set of 480 cases draws on production samples, policy boundaries, incidents, adversarial inputs and failure shapes.

0
ProgrammingDEV Community ·

Appliance firm loses small claims case after its AI gave conflicting warranty answers

A regional appliance repair company with six vans and an AI-first support inbox settled a small-claims case over a $740 compressor replacement last spring. A customer's 22-message, nine-day chat showed the AI giving four different warranty terms when she asked the same question repeatedly, including 12 months, 24 months, and a lifetime compressor warranty. The company argued its policy was 12 months, but the judge accepted the customer's reliance on the conflicting written statements. The article attributes the inconsistency to retrieval from different documents, including an outdated 2023 promo page and a manufacturer's parts sheet, rather than to the model simply making things up. Across one quarter, the company found 33% of threads where a repeated question produced at least two different answers.