Skip to content

fix(runtime): pass backend generation options#464

Merged
drewstone merged 1 commit into
mainfrom
fix/resolve-agent-backend-generation-options
Jul 3, 2026
Merged

fix(runtime): pass backend generation options#464
drewstone merged 1 commit into
mainfrom
fix/resolve-agent-backend-generation-options

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

Summary

  • Add optional temperature and maxTokens passthrough to createOpenAICompatibleBackend.
  • Forward those options through resolveAgentBackend for router/tcloud/cli-bridge paths.
  • Map maxTokens to OpenAI-compatible max_tokens and preserve the existing omitted-field behavior when unset.
  • Regenerate API docs for the public option surface.

Why

This closes #460 and lets product/lab callers use the shared backend resolver without losing generation settings needed for fair direct-chat controls.

Verification

  • pnpm exec biome check --write src/backends.ts src/resolve-agent-backend.ts src/resolve-agent-backend.test.ts tests/backends-openai-tools.test.ts
  • pnpm exec vitest run src/resolve-agent-backend.test.ts tests/backends-openai-tools.test.ts — 22 tests passed
  • pnpm typecheck
  • pnpm lint
  • pnpm build
  • pnpm test — 126 files, 1230 passed, 2 skipped
  • pnpm docs:freshness
  • pnpm docs:check
  • git diff --check
  • git fetch origin main && git merge-tree --write-tree origin/main HEAD

@tangletools tangletools left a comment

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.

✅ Auto-approved drewstone PR — 6a3b22da

This PR was opened by the trusted drewstone account.
The full PR reviewer audit still runs separately and will publish findings if it detects issues.

tangletools · auto-approval · reason: drewstone_author · 2026-07-03T19:42:36Z

@drewstone drewstone merged commit 10d2ded into main Jul 3, 2026
1 check passed
@drewstone drewstone deleted the fix/resolve-agent-backend-generation-options branch July 3, 2026 19:45
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.

resolveAgentBackend should pass chat generation options

2 participants