Skip to content

Conversation

@agents-git-bot
Copy link
Contributor

Summary

This PR syncs documentation changes for cloudflare/agents#800 which updates dependencies.

Changes

The dependency update includes an upgrade to @cloudflare/workers-types which introduces a breaking change to the Email Worker API. The forward() and reply() methods on email messages now return Promise<EmailSendResult> instead of Promise<void>, where EmailSendResult contains a messageId field for tracking sent emails.

Updated Documentation

  • agents/concepts/agent-class.mdx: Updated AgentEmail email handling examples to show the returned EmailSendResult and how to use the messageId
  • email-routing/email-workers/runtime-api.mdx:
    • Updated ForwardableEmailMessage interface to show new return types
    • Added EmailSendResult type definition
    • Updated method descriptions to mention the returned messageId
    • Updated example code to demonstrate capturing the result

Related PR


🤖 Auto-generated by the docs sync workflow

Update documentation to reflect that email forward() and reply() methods
now return Promise<EmailSendResult> instead of Promise<void>. This change
corresponds to agents PR #800 which updates dependencies including
@cloudflare/workers-types.

Changes:
- Updated AgentEmail interface documentation in agents/concepts/agent-class.mdx
- Added examples showing how to use the returned messageId
- Updated ForwardableEmailMessage interface in email-routing runtime API
- Added EmailSendResult type definition

Related: cloudflare/agents#800
@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
/src/content/docs/email-routing/ @cloudflare/pcx-technical-writing

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. product:email-routing size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants