Skip to content

Conversation

@agents-git-bot
Copy link
Contributor

Summary

This PR syncs documentation changes from cloudflare/agents PR #756 to reflect the package reorganization where AI chat and codemode functionality have been extracted into separate packages.

Changes

  • Updated import paths from agents/ai-chat-agent to @cloudflare/ai-chat
  • Updated import paths from agents/ai-react to @cloudflare/ai-chat/react
  • Affected files:
    • /agents/guides/human-in-the-loop/ - Human-in-the-loop guide
    • /agents/api-reference/agents-api/ - Agents API reference

Original PR

Notes

This is a non-breaking change that updates documentation to reflect the new package structure. The packages maintain backward compatibility while providing clearer organization for AI chat and codemode functionality.

🤖 Generated with Claude Code

@github-actions github-actions bot added the product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. label Dec 29, 2025
@github-actions
Copy link
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/agents/ @irvinebroque, @rita3ko, @elithrar, @thomasgauvin, @threepointone, @whoiskatrin, @cloudflare/pcx-technical-writing, @cloudflare/ai-agents

… packages

Sync documentation changes from cloudflare/agents PR #756:
- Update import paths from agents/* to @cloudflare/ai-chat/* and @cloudflare/codemode/*
- Add comprehensive documentation for @cloudflare/ai-chat package
- Add comprehensive documentation for @cloudflare/codemode package
- Update all code examples to reflect new package structure

This reflects the splitting of ai-chat and codemode into separate packages
while maintaining backward compatibility.

Source PR: cloudflare/agents#756
@agents-git-bot
Copy link
Contributor Author

Updated PR with comprehensive documentation changes:

Changes Made

  1. Updated Import Paths - Updated all references from agents/ai-chat-agent, agents/ai-react, and agents/codemode to the new package structure:

    • @cloudflare/ai-chat for chat functionality
    • @cloudflare/ai-chat/react for React hooks
    • @cloudflare/codemode/ai for code mode functionality
  2. New Documentation Pages:

    • /agents/concepts/ai-chat.mdx - Comprehensive guide to the @cloudflare/ai-chat package covering:

      • Installation and setup
      • Core components (AIChatAgent, useAgentChat)
      • Key features (resumable streaming, tool support, metadata)
      • Advanced patterns (custom requests, tool continuation, human-in-the-loop)
      • Complete API reference
    • /agents/concepts/codemode.mdx - Comprehensive guide to Code Mode covering:

      • Why Code Mode and its benefits
      • Installation and configuration
      • How it works
      • Usage examples (before/after)
      • Agent integration with MCP servers
      • Security considerations
      • Complete API reference
  3. Updated Files:

    • guides/human-in-the-loop.mdx - Updated all imports and added @cloudflare/ai-chat to installation instructions
    • api-reference/agents-api.mdx - Updated all import paths in examples and documentation

All changes follow Cloudflare documentation style guidelines including proper use of components (TypeScriptExample, PackageManagers, WranglerConfig) and cross-linking to related documentation.

Source PR: cloudflare/agents#756

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants