FrameworksOfficial

AI SDK 7.0.157 stabilizes tool filtering, while tool visibility still is not execution authority

Released October 29, AI SDK 7.0.157 graduates `filterActiveTools` to a stable export and makes `LanguageModelStreamPart` a stable type while retaining deprecated aliases. It also fixes Node API warnings caused by telemetry runtime detection in the Next.js Edge Runtime.

Why it matters

Generative interfaces and agents often connect large sets of search, data, action and rendering tools. Narrowing the model-visible set per step can remove irrelevant schemas, reduce selection ambiguity and preserve type inference. Treating 'not shown to the model' as 'not allowed to execute', however, turns a prompt optimization into a false authorization boundary.

A closer look

Stable `filterActiveTools` takes a full tool registry and an activeTools list and returns a typed subset. `experimental_filterActiveTools` remains as a deprecated alias for gradual migration. Stable `LanguageModelStreamPart` unifies model-stream event typing, with `Experimental_LanguageModelStreamPart` retained until v8; the custom-loop function `experimental_streamLanguageModelCall` itself remains experimental. The Edge fix changes `process.release` detection to optional `globalThis.process` access, and the maintainer verified that warnings disappeared in a Next.js end-to-end example. An updated gateway dependency also preserves caller cancellations instead of fabricating retryable HTTP 500 errors, but that is a dependency change rather than an AI core API change.

Who this is for

TypeScript teams using AI SDK for multi-tool agents, generative UI, MCP catalogs, per-step tool selection, Edge deployment and authorization

Original sources

Revisions & corrections (2)

— Publish the verified 7.0.157 release. The open design issue is a documented limitation and counterexample, not a date or identity conflict.

— Publish a verified framework boundary change and preserve the official open issue showing that model-visible tool filtering is not an authorization control.

Related events

Frameworks

assistant-ui's October 28 release tightens prompt review, tool-result ownership and configuration writes

assistant-ui released a coordinated package set on October 28. Generative Frame 0.0.9 fills the composer with widget and MCP App prompts for review before sending; assistant-stream 0.3.55 fixes stale model content surviving a later tool response and pending results moving when tool-call IDs are reused; the CLI also narrows configuration paths and plan-revision boundaries.

Frameworks

AI SDK 7.0.155 removes runtime checks already guaranteed by static types

Released October 27, AI SDK 7.0.155 stops revalidating message history against the ModelMessage schema in text and object generation and removes several shape checks covered by TypeScript, reducing a linear cost in long conversations and multi-step runs.