Skip to content

Conversation

@atlasgong
Copy link

@atlasgong atlasgong commented Jan 2, 2026

Summary

The AgentNamespace type has been deprecated:

https://github.com/cloudflare/agents/blob/efd12f65ed782a2bc85e75b4f42ea14b599fc987/packages/agents/src/index.ts#L1630-L1636

This PR replaces all references to AgentNamespace in the Calling Agents with DurableObjectNamespace.

The imports were removed as DurableObjectNamespace is a type included in theworker-configuration.d.ts file generated with wrangler types.

Documentation checklist

  • Is there a changelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to RSS feeds, the Discord, and X.
  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

@github-actions github-actions bot added size/s product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. labels Jan 2, 2026
@atlasgong
Copy link
Author

I realize that there are other docs still referencing AgentNamespace:

Is it alright If I replace all references in this same PR?

@mattzcarey
Copy link
Contributor

Hey please rebase since #27273 was merged.

@atlasgong atlasgong closed this Jan 21, 2026
@atlasgong atlasgong force-pushed the fix/calling-agents-deprecated-type branch from aeb62d9 to 7d5bd89 Compare January 21, 2026 02:56
@atlasgong
Copy link
Author

Apologies; did not see the existing PR. Seems like there's no extra changes to make! Thanks :)

@atlasgong atlasgong deleted the fix/calling-agents-deprecated-type branch January 21, 2026 02:57
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.

8 participants