<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/laravel-ai-sdk-1-0-adds-classification-and-tool-approvals-a2hfntbkc" -->

---
title: Laravel AI SDK 1.0 Adds Classification and Tool Approvals
description: Laravel AI SDK 1.0 has shipped with a new classification capability powered by TypeSafe's Jev models, enabling fast typed decisions like ticket routing or spam...
canonical: https://daily.dev/posts/laravel-ai-sdk-1-0-adds-classification-and-tool-approvals-a2hfntbkc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Laravel AI SDK 1.0 Adds Classification and Tool Approvals | daily.dev
og:description: Laravel AI SDK 1.0 has shipped with a new classification capability powered by TypeSafe's Jev models, enabling fast typed decisions like ticket routing or spam...
og:url: https://daily.dev/posts/laravel-ai-sdk-1-0-adds-classification-and-tool-approvals-a2hfntbkc
og:image: https://api.daily.dev/og/posts/a2hFnTBKC.png
og:image:alt: Laravel AI SDK 1.0 Adds Classification and Tool Approvals
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Laravel AI SDK 1.0 Adds Classification and Tool Approvals

**[Laravel News](https://daily.dev/sources/ln)** · [@ericlbarnes](https://daily.dev/ericlbarnes) · 4 min read · 0 upvotes · 0 comments

## Summary

Laravel AI SDK 1.0 has shipped with a new classification capability powered by TypeSafe's Jev models, enabling fast typed decisions like ticket routing or spam detection at a fraction of typical LLM cost. The release adds Vercel Chat and AG-UI streaming protocol support for pairing with frontend chat libraries, approvable tool calls that pause agents for human sign-off before running sensitive actions like file deletion, per-step agent middleware, tool search for lazy-loading rarely used tools, provider-side code execution, and a new consolidated conversation storage format. The release includes breaking changes to conversation storage, agent middleware, token usage field names, and stream protocols, requiring a backfill migration before deploying. The Laravel team recommends using Laravel Boost with an AI coding assistant to walk through the upgrade guide.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/laravel-ai-sdk-1-0>

## Questions this post answers

### What breaking changes are in Laravel AI SDK 1.0 that I need to handle when upgrading?

Laravel AI SDK 1.0 changes conversation storage, agent middleware, token usage field names, and stream protocols. The tool_calls and tool_results columns are replaced by a single steps JSON column, so raw SQL against those columns must move to steps. promptTokens and completionTokens are renamed inputTokens and outputTokens. A backfill migration in the upgrade guide must run once before deploying.

_daily.dev keeps upgrade guides like this handy for developers migrating Laravel AI SDK versions._

### How does classification work in Laravel AI SDK 1.0?

Classification is a new first-class capability that lets you ask a set of typed questions about a piece of text and get typed answers back, using Boolean, Choice, or Score question types. It runs on Jev models from TypeSafe, described as answering in milliseconds at a fraction of the cost of traditional LLMs, and also works with OpenRouter. A Str::decide macro handles single yes-or-no questions with a configurable confidence threshold.

_developers evaluating fast, cheap classification options for Laravel apps can track updates like this on daily.dev._

### How do approvable tool calls work in Laravel AI SDK?

A tool implementing the Approvable contract and using the InteractsWithApprovals trait pauses the agent until a human approves it, useful for risky actions like deleting files. The response lists pending calls with the model's chosen arguments, and a human can approve, reject with a reason the model sees, or edit the arguments before the tool runs. It works with prompt, stream, queue, and broadcast methods.

_teams adding human-in-the-loop safeguards to AI agents can follow implementation details like this on daily.dev._

## Similar posts on daily.dev

- [Toolkit: Reusable AI Tools for the Laravel AI SDK](https://daily.dev/posts/toolkit-reusable-ai-tools-for-the-laravel-ai-sdk-8suwxwtfq) · Laravel News · 16 upvotes · 0 comments

---

Tags: [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel), [#ai-sdk](https://daily.dev/tags/ai-sdk)

[View this post on daily.dev](https://daily.dev/posts/laravel-ai-sdk-1-0-adds-classification-and-tool-approvals-a2hfntbkc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Laravel AI SDK 1.0 Adds Classification and Tool Approvals","url":"https://daily.dev/posts/laravel-ai-sdk-1-0-adds-classification-and-tool-approvals-a2hfntbkc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/laravel-ai-sdk-1-0-adds-classification-and-tool-approvals-a2hfntbkc"},"datePublished":"2026-09-23T15:44:51.203Z","dateModified":"2026-09-24T12:00:15.109Z","description":"Laravel AI SDK 1.0 has shipped with a new classification capability powered by TypeSafe's Jev models, enabling fast typed decisions like ticket routing or spam...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f793f294ca30781905cef7569576700b?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f793f294ca30781905cef7569576700b?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Laravel News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Eric L. Barnes","url":"https://daily.dev/ericlbarnes","image":"https://media.daily.dev/image/upload/s--K6f982B3--/f_auto/v1755288662/avatars/avatar_9SjPngRVLKMb8ob1eVrqZ?_a=BAMClqZW0","description":"Founder of Laravel News","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":2500}},"commentCount":0,"discussionUrl":"https://daily.dev/posts/laravel-ai-sdk-1-0-adds-classification-and-tool-approvals-a2hfntbkc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"php,laravel,ai-sdk","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Laravel News","item":"https://daily.dev/sources/ln"},{"@type":"ListItem","position":3,"name":"Laravel AI SDK 1.0 Adds Classification and Tool Approvals"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/laravel-ai-sdk-1-0-adds-classification-and-tool-approvals-a2hfntbkc#faq","mainEntity":[{"@type":"Question","name":"What breaking changes are in Laravel AI SDK 1.0 that I need to handle when upgrading?","acceptedAnswer":{"@type":"Answer","text":"Laravel AI SDK 1.0 changes conversation storage, agent middleware, token usage field names, and stream protocols. The tool_calls and tool_results columns are replaced by a single steps JSON column, so raw SQL against those columns must move to steps. promptTokens and completionTokens are renamed inputTokens and outputTokens. A backfill migration in the upgrade guide must run once before deploying. daily.dev keeps upgrade guides like this handy for developers migrating Laravel AI SDK versions."}},{"@type":"Question","name":"How does classification work in Laravel AI SDK 1.0?","acceptedAnswer":{"@type":"Answer","text":"Classification is a new first-class capability that lets you ask a set of typed questions about a piece of text and get typed answers back, using Boolean, Choice, or Score question types. It runs on Jev models from TypeSafe, described as answering in milliseconds at a fraction of the cost of traditional LLMs, and also works with OpenRouter. A Str::decide macro handles single yes-or-no questions with a configurable confidence threshold. developers evaluating fast, cheap classification options for Laravel apps can track updates like this on daily.dev."}},{"@type":"Question","name":"How do approvable tool calls work in Laravel AI SDK?","acceptedAnswer":{"@type":"Answer","text":"A tool implementing the Approvable contract and using the InteractsWithApprovals trait pauses the agent until a human approves it, useful for risky actions like deleting files. The response lists pending calls with the model's chosen arguments, and a human can approve, reject with a reason the model sees, or edit the arguments before the tool runs. It works with prompt, stream, queue, and broadcast methods. teams adding human-in-the-loop safeguards to AI agents can follow implementation details like this on daily.dev."}}]}
```

