Skip to content

think: expose turn call settings#1447

Merged
threepointone merged 1 commit intomainfrom
think-turn-call-settings
May 2, 2026
Merged

think: expose turn call settings#1447
threepointone merged 1 commit intomainfrom
think-turn-call-settings

Conversation

@threepointone
Copy link
Copy Markdown
Contributor

@threepointone threepointone commented May 2, 2026

Summary

  • Expose stable AI SDK streamText call settings on Think TurnConfig, including timeout and maxRetries.
  • Forward those settings through Think's inference loop and merge JSON-safe values from extension beforeTurn hooks.
  • Document the new per-turn settings and add regression coverage for provider-visible call settings.

Fixes #1446

Test plan

  • npx vitest --run -c packages/think/src/tests/vitest.config.ts packages/think/src/tests/hooks.test.ts
  • npm run build --workspace @cloudflare/think
  • ReadLints on touched files

Made with Cursor


Open in Devin Review

Forward stable AI SDK streamText call settings through Think TurnConfig so callers can tune retries, timeouts, and generation behavior per turn.

Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 2, 2026

🦋 Changeset detected

Latest commit: 38f516d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudflare/think Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 2, 2026

Open in StackBlitz

agents

npm i https://pkg.pr.new/agents@1447

@cloudflare/ai-chat

npm i https://pkg.pr.new/@cloudflare/ai-chat@1447

@cloudflare/codemode

npm i https://pkg.pr.new/@cloudflare/codemode@1447

hono-agents

npm i https://pkg.pr.new/hono-agents@1447

@cloudflare/shell

npm i https://pkg.pr.new/@cloudflare/shell@1447

@cloudflare/think

npm i https://pkg.pr.new/@cloudflare/think@1447

@cloudflare/voice

npm i https://pkg.pr.new/@cloudflare/voice@1447

@cloudflare/worker-bundler

npm i https://pkg.pr.new/@cloudflare/worker-bundler@1447

commit: 38f516d

@threepointone threepointone merged commit c7998b2 into main May 2, 2026
2 checks passed
@threepointone threepointone deleted the think-turn-call-settings branch May 2, 2026 00:52
@github-actions github-actions Bot mentioned this pull request May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose timeout and maxRetries on Think's TurnConfig

1 participant