Lars Grammel's Avatar

Lars Grammel

@lgrammel.bsky.social

233 Followers  |  79 Following  |  84 Posts  |  Joined: 06.11.2023  |  1.9974

Latest posts by lgrammel.bsky.social on Bluesky

AI SDK 5: What’s New and What’s Next by Lars Grammel | AI Meetup in Wrocław, September 2025
YouTube video by Callstack AI SDK 5: What’s New and What’s Next by Lars Grammel | AI Meetup in Wrocław, September 2025

My talk about AI SDK 5 from the AI Meetup in Wrocław is on youtube: www.youtube.com/watch?v=xgR-...

12.10.2025 07:38 — 👍 0    🔁 0    💬 0    📌 0

prediction: as ai relies more and more on websearch, seo for ai will bring product placement and then it will be followed by ads for ai (content suggestions), esp. in free ai chatbot tiers. ai chatbots will become more like google search in some of those ways.

07.09.2025 14:23 — 👍 1    🔁 0    💬 0    📌 0

I find this research fascinating because it means that there is a path towards smaller models that are strong on tool use and reasoning and that use external knowledge sources (through tools such as web search) instead of baked in knowledge.

openai.com/index/why-la...

07.09.2025 14:16 — 👍 0    🔁 0    💬 0    📌 0
Preview
GPT-5 Thinking in ChatGPT (aka Research Goblin) is shockingly good at search “Don’t use chatbots as search engines” was great advice for several years... until it wasn’t. I wrote about how good OpenAI’s o3 was at using its Bing-backed search tool back …

The previously sensible advice to never use ChatGPT for search needs to be rethought - GPT-5 in thinking mode is shockingly good at running searches now simonwillison.net/2025/Sep/6/r...

06.09.2025 19:44 — 👍 145    🔁 18    💬 19    📌 7
Post image

At React Universe Conference Wroclaw today - would love to chat with AI SDK users.

If you are around and want to give feedback or learn more about the AI SDK send me a DM.

03.09.2025 09:43 — 👍 1    🔁 0    💬 0    📌 0

Finally - almost 5 months of work, our biggest release so far.

Completely revamped, type-safe AI chat is a game changer imo. I don't know any other framework that has full stack support for this. Hope it will enable you to build the next generation of AI applications.

31.07.2025 16:15 — 👍 7    🔁 0    💬 0    📌 0

i recommend cursor. tried switching back to copilot at some point to give it another shot and switched back to cursor almost immediately.

19.05.2025 16:35 — 👍 1    🔁 0    💬 1    📌 0

is that with the new chattransport?

19.05.2025 09:19 — 👍 0    🔁 0    💬 1    📌 0

You can try AI SDK 5 now:

16.05.2025 13:40 — 👍 2    🔁 0    💬 0    📌 0
Post image

AI SDK 5 prototype: custom UI data parts

You can define custom ui data parts and stream updates to them from the server:

14.05.2025 17:44 — 👍 2    🔁 0    💬 0    📌 0
Post image

AI SDK 5 preview: ChatStore & ChatTransport

ChatStore synchronizes chat write operations and manages streaming state. You can use it directly or through framework integrations like useChat.

ChatTransport makes backend integrations more flexible, allowing for client-only usage.

13.05.2025 15:05 — 👍 2    🔁 0    💬 0    📌 0
Post image

AI SDK 5 preview: UI message persistance

We recommend storing UI messages, not model messages, if your application has a useChat component.

This ensures that the UI state can be correctly restored and helps integrating backends other than streamText (e.g. Langchain).

11.05.2025 12:25 — 👍 1    🔁 0    💬 0    📌 0

For agent to agent communication you have to set up something custom - focus for AI SDK 5 is to improve assistant to user messages in the UI

10.05.2025 21:58 — 👍 0    🔁 0    💬 1    📌 0
Post image

AI SDK 5 preview: UI message metadata

UI messages in AI SDK 5 will have a generic metadata property (instead of specific properties like createdAt).

This lets you send and show the message metadata that's important in your application:

10.05.2025 16:53 — 👍 3    🔁 0    💬 0    📌 0

It's important to distinguish UI messages from model messages.

Having a clear separation makes it easier to set up (application specific) persistence for your UI messages and additional context. It also helps putting prompt optimizations in place and improving results.

10.05.2025 16:52 — 👍 0    🔁 0    💬 0    📌 0

The model prompt is often e.g. enriched and compressed.

E.g. short-term memory compresses, long-term memory and RAG enriches, system messages add additional information. You could have different model message prompts depending on the context.

10.05.2025 16:52 — 👍 0    🔁 0    💬 1    📌 0

UI messages contain additional information such as custom app data and metadata. Tools calls might be omitted. etc.

10.05.2025 16:52 — 👍 0    🔁 0    💬 1    📌 0
Post image

UI messages != model messages

What you display to the user (ui messages) is different from what you want to send to the LLM (model messages).

UI messages contain additional information such as custom app data and metadata. Tools calls might be omitted. etc.

10.05.2025 16:52 — 👍 1    🔁 0    💬 1    📌 0
Post image

In AI SDK 5, UI messages will be composed of parts.

This is my current vision of how UI messages could look like - feedback welcome.

10.05.2025 16:49 — 👍 1    🔁 0    💬 1    📌 0

Starting to be excited about AI SDK 5

Our planned timeline:

- alpha 1st half of May
- beta 2nd half of May
- GA in June

10.05.2025 16:47 — 👍 1    🔁 0    💬 0    📌 0

You can improve agent quality (i.e. success within a certain number of steps) with better prompts, tools, and other scaffolding - but you always need to account for the runaway run problem by limiting steps somehow (e.g. using a budget like tokens, steps, or money spent)

29.04.2025 11:22 — 👍 1    🔁 0    💬 0    📌 0

AI agents vs workflow runs & run termination:

Workflows have a deterministic number of steps after which they will finish with with a solution (of varying quality).

Agents run in a loop and it is unclear when and if they will finish with a solution.

29.04.2025 11:06 — 👍 2    🔁 0    💬 1    📌 0

one fundamental issue w/ ai agents:

the problem of deciding when to stop an agent run is a variant of the halting problem

there will always be agent runs for which, given their current state and history, it cannot be known whether they will terminate with an answer or not

27.04.2025 06:58 — 👍 0    🔁 0    💬 0    📌 1
Post image

And it autocompletes:

26.03.2025 17:49 — 👍 1    🔁 0    💬 0    📌 0

Combining the provider registry with custom providers and middleware is extremely powerful for setting up your models in one place:

26.03.2025 17:48 — 👍 2    🔁 0    💬 1    📌 0

You can set custom headers, e.g. for auth, when using the MCP SSE transport:

24.03.2025 17:04 — 👍 0    🔁 0    💬 0    📌 0

Lots of new features shipped since January, check out our 4.2 release:

21.03.2025 10:34 — 👍 2    🔁 0    💬 0    📌 0

The AI SDK now supports LLMs that generate file outputs, first example are images:

19.03.2025 13:24 — 👍 2    🔁 0    💬 0    📌 0

lot of people asked for this, and while I can claim ~zero credit I'm very happy it's out there

really digging the class-based APIs (`chat = new Chat(...)` etc) that are popping up in the Svelte ecosystem. Classes are great! They feel solid, tangible. I missed them.

17.03.2025 18:41 — 👍 56    🔁 3    💬 1    📌 0
Post image

AI SDK Svelte 2.0 is here with native Svelte 5 support.

Thanks to Elliot and @rich-harris.dev for this huge update!

17.03.2025 11:01 — 👍 24    🔁 4    💬 1    📌 2

@lgrammel is following 20 prominent accounts