Cloudflare Agents (agents): an Agent typically calls the AI SDK's generateText({ system, ... })
on Workers. getSystem returns the governed context to pass as system for the turn, and
remember persists the completed turn. Structural, so agents stays an optional peer dependency
and this runs on the Workers runtime (the in-memory store needs no Node APIs).
Cloudflare Agents (
agents): an Agent typically calls the AI SDK'sgenerateText({ system, ... })on Workers.getSystemreturns the governed context to pass assystemfor the turn, andrememberpersists the completed turn. Structural, soagentsstays an optional peer dependency and this runs on the Workers runtime (the in-memory store needs no Node APIs).