Repository navigation
Conversation
An auto spec classifies the conversation on each new turn and runs on the chosen model's defaults at the routed effort. A failed classification fails the turn, and a rebuilt turn resumes on the saved model. Co-authored-by: Cursor <cursoragent@cursor.com>
…nd test the root and subagent routing paths. Co-authored-by: Cursor <cursoragent@cursor.com>
| } | ||
|
|
||
| /** The tenant's routing entry when that tenant has model routing on. */ | ||
| export function enabledTenantModelRouting(routing: TrueFoundryModelRouting | undefined, tenant_id: string) { |
There was a problem hiding this comment.
🟡 Low: Code Quality Violation
Suggested change
| export function enabledTenantModelRouting(routing: TrueFoundryModelRouting | undefined, tenant_id: string) { | |
| export function enabledTenantModelRouting(routing: TrueFoundryModelRouting | undefined, tenantId: string) { |
Use 'camelCase' and not 'snake_case' or 'PascalCase' (...read more)
Ensure that parameter names use camelCase and not snake_case or PascalCase.
Helpful? 👍/👎
🚩 Report as false positive. Flags the rule for review to improve detection accuracy.
|
…licitly. Co-authored-by: Cursor <cursoragent@cursor.com>
hary73
commented
Nov 20, 2026
| /** Reasoning effort the thread should run at. */ | ||
| effort: ReasoningEffort; | ||
| /** Reasoning effort the thread should run at; undefined keeps the model's default. */ | ||
| effort: ReasoningEffort | undefined; |
Contributor
Author
There was a problem hiding this comment.
should we store effort as well for rebuilds
3 of 5 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes AGE-2853
Part of AGE-2873 (spec) and AGE-2875 (default policy)
Stacked on #1390 (subagent routing) and #1426 (persist each thread's model), through the combined branch
test/routing-plus-age-2841, so this diff shows only root auto mode.Changes
auto. The root is routed on every turn: the decision model sees the conversation's user and assistant text (attachment names and types instead of contents) and classifies the new user message.autois accepted only when model routing is enabled for the tenant (checked when an agent or session spec is validated).TRUEFOUNDRY_MODEL_ROUTINGnow covers subagents andautoroots: the per-tenantsubagentkey is renamed toenabled, so existing configs need updating.How was this tested?
autoModel.test.ts(root and subagent routing), router,UserInputMessage, config andsessionResourcestests.autosession routed each turn to a different model as the conversation changed.Checklist
pnpm build,pnpm test,pnpm typecheck,pnpm lint:ci, andpnpm format:checkpass locallypackages/trueforge-sdk,python/trueforge_sdk,.github/fern/openapi/openapi.json,docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge.env.exampleupdated if configuration or behavior changed