[KongchangAI]
ProductLaravel AI SDK v1.0

Laravel AI SDK

An officially maintained AI integration SDK for the Laravel framework that provides a unified HTTP API abstraction layer. It supports connections to major large language model providers such as OpenAI and Google, and includes built-in Agent, Tools, and Memory capabilities, eliminating the need to install third-party AI client libraries.

Timeline (last 90 days)

Oct 9

Laravel officially released AI SDK v1.0, enabling PHP developers to connect to various large models and build AI agents in a unified way

Unverified50%
Oct 9

Laravel AI SDK does not require installing any vendor's client SDK separately, but instead makes calls to each vendor through a unified HTTP API abstraction layer

Unverified50%
Oct 9

Laravel AI SDK provides three core capabilities: Agent, Tools, and Memory

Unverified50%
Oct 9

Using the Artisan command `php artisan make:agent` can generate an agent PHP file in the app/AI/Agents directory

Unverified50%
Oct 9

Using the `php artisan make:tool` command can create a tool class, whose three core methods are description, schema, and handle

Unverified50%
Oct 9

The #[MaxSteps(6)] attribute can be used to limit the maximum number of reasoning steps for an agent, preventing repeated tool calls from accumulating large amounts of tokens or falling into a loop

Unverified50%
Oct 9

Laravel AI SDK's migration files come with two tables, agent_conversation and agent_conversation_message, for storing conversation history, roles, and message order

Unverified50%
Oct 9

By introducing Conversational and using the tryRememberConversation method, Laravel automatically saves and restores conversations without the need to manually write message storage and retrieval methods

Unverified50%
Oct 9

Laravel AI SDK v1.0 does not yet have built-in conversation summary compression or maximum history round control, and developers need to implement these themselves to manage costs

Unverified50%

All Facts (9)

Source Articles