Cloudflare changelogs | Developer platform

Cloudflare changelogs for Developer platform products

马上订阅 Cloudflare changelogs | Developer platform RSS 更新: https://developers.cloudflare.com/changelog/rss/developer-platform.xml

Agents, Workers - npm i agents

2025年3月18日 08:00
AgentsWorkers
npm i agents

agents-sdk -> agents Updated

📝 We've renamed the Agents package to agents!

If you've already been building with the Agents SDK, you can update your dependencies to use the new package name, and replace references to agents-sdk with agents:

# Install the new package
npm i agents
# Remove the old (deprecated) package
npm uninstall agents-sdk
# Find instances of the old package name in your codebase
grep -r 'agents-sdk' .
# Replace instances of the old package name with the new one
# (or use find-replace in your editor)
sed -i 's/agents-sdk/agents/g' $(grep -rl 'agents-sdk' .)

All future updates will be pushed to the new agents package, and the older package has been marked as deprecated.

Agents SDK updates New

We've added a number of big new features to the Agents SDK over the past few weeks, including:

  • You can now set cors: true when using routeAgentRequest to return permissive default CORS headers to Agent responses.
  • The regular client now syncs state on the agent (just like the React version).
  • useAgentChat bug fixes for passing headers/credentials, including properly clearing cache on unmount.
  • Experimental /schedule module with a prompt/schema for adding scheduling to your app (with...

剩余内容已隐藏

查看完整文章以阅读更多