fix: standardize AIChatAgent and useAgentChat import paths - #37
Closed
adewale wants to merge 1 commit into
Closed
Conversation
…CLI syntax Verified each correction against official Cloudflare documentation. - KV pricing wrong by 10x, D1 pricing wrong by 1000x - CPU time limits showed ms instead of seconds across 16 files - routeAgent misspelled (missing 'Request'), nodejs_compat_v2 standalone usage - wrangler check described as config validation (actually startup profiling) - Vectorize batch limit 500 -> 1000, wrangler version v3.91 -> v4 - Sandbox: runCode() API, return types, Docker tags, exec() timeout - Agent binding name mismatch, multi-agent fetch() -> RPC - Secrets Store CLI syntax, README missing cloudflare-api MCP server - web-perf description missing INP, KV reads label misleading
Contributor
Author
|
Closing: branch still included unrelated changes. Replaced by PR from a clean branch off main. |
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.
Summary
Fixes import path inconsistency for AIChatAgent and useAgentChat across 4 files. Three different import patterns were being used:
Changes
Standardized all imports to use the canonical
@cloudflare/ai-chatpackage:cloudflare/references/agents-sdk/patterns.md:8"agents""@cloudflare/ai-chat"cloudflare/references/agents-sdk/api.md:10"agents""@cloudflare/ai-chat"cloudflare/references/agents-sdk/README.md:30"agents""@cloudflare/ai-chat"building-ai-agent-on-cloudflare/SKILL.md:297"agents/ai-chat-agent""@cloudflare/ai-chat"cloudflare/references/agents-sdk/patterns.md:42"agents/ai-react""@cloudflare/ai-chat/react"cloudflare/references/agents-sdk/api.md:177"agents/ai-react""@cloudflare/ai-chat/react"Verification
@cloudflare/ai-chatv0.3.2 is the official npm package