概要
公開日: 2026-06-02
翻訳生成に失敗したため、原文をそのまま保存しています。
原文
Changelog New updates and improvements at Cloudflare. Subscribe to RSS View RSS feeds ← Back to all posts Agents SDK v0.14.0: Agent Skills, messengers, scheduled tasks, Workflows, and hardened chat recovery Jun 02, 2026 Agents Workers The latest release of the Agents SDK ↗ adds four new ways to build with @cloudflare/think : on-demand Agent Skills, chat messengers (starting with Telegram), declarative scheduled tasks, and durable reasoning steps inside Workflows. This release also significantly hardens durable chat recovery, so turns reliably ride through deploys, evictions, and stalled model streams in production. Agent Skills (experimental) Give an agent a catalog of on-demand instructions, resources, and scripts. A skill source adds a catalog to the system prompt, and the model activates a skill only when a task matches — so a large library of capabilities does not bloat every prompt. JavaScript TypeScript JavaScript import { Think , skills } from "@cloudflare/think" ; import bundledSkills from "agents:skills" ; export class SkillsAgent extends Think { getSkills () { return [ bundledSkills , skills . r2 ( this . env . SKILLS_BUCKET , { prefix : "skills/" } ) , ] ; } } TypeScript import { Think , skills } from "@cloudflare/think" ; import bundledSkills from "agents:skills" ; export class SkillsAgent extends Think < Env > { getSkills () { return [ bundledSkills , skills . r2 ( this . env . SKILLS_BUCKET , { prefix : "skills/" } ) , ] ; } } { getSkills() { return [ bundledSkills, skills.r2(this.env.SKILLS_BUCKET, { prefix: "skills/" }), ]; }}"> The agents:skills import bundles a local ./skills directory through the Agents Vite plugin (one directory per skill, each with a SKILL.md ). Skills can also load from R2 or a manifest. When skills are available, Think exposes activate_skill , read_skill_resource , and an optional run_skill_script tool. Skill loading is resilient: a duplicate or failing source is skipped with a warning instead of breaking the agent. Agent Skills are experimental , and script execution in particular is early. The API may change in a future release. We would love your feedback — tell us what you are building and what is missing in the Agents repository ↗ . Messengers Connect a Think agent directly to a chat platform. Think owns the webhook route, conversation routing, durable reply fiber, and streamed delivery back to the provider. Telegram ships as the first provider. JavaScript TypeScript JavaScript import { Think } from "@cloudflare/think" ; import { defineMessengers , ThinkMessengerStateAgent , } from "@cloudflare/think/messengers" ; import telegramMessenger from "@cloudflare/think/messengers/telegram" ; export { ThinkMessengerStateAgent }; export class SupportAgent extends Think { getMessengers () { return defineMessengers ( { telegram : telegramMessenger ( { token : this . env . TELEGRAM_BOT_TOKEN , userName : "support_bot" , secretToken : this . env . TELEGRAM_WEBHOOK_SECRET_TOKEN , } ) , } ) ; } } TypeScript import { Think } from "@cloudflare/think" ; import { defineMessengers , ThinkMessengerStateAgent , } from "@cloudflare/think/messengers" ; import telegramMessenger from "@cloudflare/think/messengers/telegram" ; export { ThinkMessengerStateAgent }; export class SupportAgent extends Think < Env > { getMessengers () { return defineMessengers ( { telegram : telegramMessenger ( { token : this . env . TELEGRAM_BOT_TOKEN , userName : "support_bot" , secretToken : this . env . TELEGRAM_WEBHOOK_SECRET_TOKEN , } ) , } ) ; } } { getMessengers() { return defineMessengers({ telegram: telegramMessenger({ token: this.env.TELEGRAM_BOT_TOKEN, userName: "support_bot", secretToken: this.env.TELEGRAM_WEBHOOK_SECRET_TOKEN, }), }); }}"> Each Chat SDK thread maps to its own Think sub-agent by default, so group chats and direct messages do not share memory. Multiple bots, custom conversation routing, and custom providers are all supported. Scheduled tasks Declare recurrin