Angaben zum Datum
Datum aus der Quelle.
Erstmals gesehen am .
Developer Platform von Cloudflare
@cloudflare/codemode v0.1.0 mit modularer, runtime-unabhängiger Architektur
Das Paket @cloudflare/codemode wurde als modulares, runtime-agnostisches SDK neu geschrieben, mit neuem Executor-Interface, DynamicWorkerExecutor und createCodeTool() unter @cloudflare/codemode/ai, während experimental_codemode() und CodeModeProxy entfernt wurden.
The @cloudflare/codemode ↗︎ package has been rewritten into a modular, runtime-agnostic SDK.
Code Mode ↗︎ enables LLMs to write and execute code that orchestrates your tools, instead of calling them one at a time. This can (and does) yield significant token savings, reduces context window pressure and improves overall model performance on a task.
The new Executor interface is runtime agnostic and comes with a prebuilt DynamicWorkerExecutor to run generated code in a Dynamic Worker Loader.
Breaking changes
- Removed
experimental_codemode()andCodeModeProxy— the package no longer owns an LLM call or model choice - New import path:
createCodeTool()is now exported from@cloudflare/codemode/ai
New features
createCodeTool()— Returns a standard AI SDKToolto use in your AI agents.Executorinterface — Minimalexecute(code, fns)contract. Implement for any code sandboxing primitive or runtime.
DynamicWorkerExecutor
Runs code in a Dynamic Worker. It comes with the following features: …