feat: add AgentsKit Workers AI agent template - #1068
Open
EmersonBraun wants to merge 3 commits into
Open
Conversation
EmersonBraun
marked this pull request as ready for review
July 27, 2026 16:59
Author
|
Hi — would this Workers AI template still be a fit for the catalog? The branch is mergeable and the template was rebased and revalidated against current main. I'm happy to adjust its metadata or structure to current conventions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
text,error, anddonestream chunksWhy
This gives Cloudflare developers a small, edge-native starting point for composing an agent around Workers AI without an external provider key. The adapter boundary keeps the inference stream compatible with AgentsKit's message and streaming contracts, so users can add memory, tools, retrieval, or another provider without replacing the UI and API flow.
Validation
pnpm --filter agentskit-agent-template test— 11 tests passedpnpm --filter agentskit-agent-template check— TypeScript and Wrangler dry-run passedpnpm exec playwright test playwright-tests/agentskit-agent-template.spec.ts --reporter=list— Chromium smoke test passedpnpm run check— 72 repository tasks passed, including template lint, lockfile validation, builds, type generation, dry-runs, and PrettierThe dry-run bundles the Worker at 40.30 KiB (8.93 KiB gzip) with only the native
AIandASSETSbindings. No credentials or external API keys are included.