Skip to content

docs: add OpenAI provider options documentation to scheduleSchema#27988

Closed
agents-git-bot[bot] wants to merge 1 commit into
productionfrom
sync-docs-pr-815
Closed

docs: add OpenAI provider options documentation to scheduleSchema#27988
agents-git-bot[bot] wants to merge 1 commit into
productionfrom
sync-docs-pr-815

Conversation

@agents-git-bot

Copy link
Copy Markdown
Contributor

Summary

  • Adds documentation for scheduleSchema API which parses natural language scheduling requests
  • Documents the required providerOptions for OpenAI compatibility
  • Includes installation instructions and complete usage example

Context

Synced from cloudflare/agents PR cloudflare/agents#815

When using scheduleSchema with OpenAI models via the AI SDK, users must pass providerOptions: { openai: { strictJsonSchema: false } } to generateObject. This is required because @ai-sdk/openai now defaults strictJsonSchema to true, which requires all schema properties to be in the required array. The scheduleSchema uses optional fields which are not compatible with this strict mode.

🤖 Generated with Claude Code

Adds documentation for the scheduleSchema API which allows parsing natural
language scheduling requests using the AI SDK. This includes:

- Overview of scheduleSchema and getSchedulePrompt helpers
- Installation instructions for required AI SDK packages
- Complete usage example with OpenAI provider
- Important callout about required providerOptions for OpenAI compatibility

Synced from cloudflare/agents PR #815

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@agents-git-bot
agents-git-bot Bot requested a review from a team January 30, 2026 11:19
@agents-git-bot
agents-git-bot Bot requested a review from a team as a code owner January 30, 2026 11:19
@github-actions github-actions Bot added product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. size/s labels Jan 30, 2026
@github-actions

Copy link
Copy Markdown
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

@github-actions

Copy link
Copy Markdown
Contributor


The `scheduleSchema` provides a structured way to parse natural language scheduling requests into a format that can be used with `this.schedule()`. This is useful when building agents that accept user input like "remind me tomorrow at 3pm" or "schedule a meeting next Monday".

The schema uses the [AI SDK](https://sdk.vercel.ai/docs/introduction) to extract scheduling information from natural language text.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't true

@github-actions
github-actions Bot deleted the sync-docs-pr-815 branch April 1, 2026 04: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.

6 participants