feat: add subAgent temperature configuration via config.yaml#460
Merged
Conversation
Owner
Author
Audit Results: SubAgent Temperature ConfigurationAudit 1: Specs Against GoalsCoverage Audit
Fidelity AuditSpecs faithfully represent the original intent. The resolution hierarchy (per-call > env var > config default) is correctly captured in all relevant requirements. Completeness AuditAll goals are covered. Added scenario for invalid per-call temperature values to address a minor gap. All edge cases (default, custom, invalid, negative, empty) are covered. Consistency AuditTasks map well to spec requirements. All spec requirements have corresponding tasks. Testing tasks (5.1-5.4) cover all requirements. Result: No errors found. Proceeding to Step 6. |
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.
Description
Adds configurable temperature for subAgent processes, allowing users to control LLM sampling randomness independently of the main process. Temperature follows the resolution hierarchy: per-call > env var > config default > provider default.
This change adds
process.subAgent.temperatureto config.yaml (default 0.7), passes it to spawned processes viaSUB_AGENT_TEMPERATUREenv var, overrides provider temperature in spawned processes, and adds an optional per-calltemperatureparameter to the subAgent tool schema.Type of Change
Testing
Unit tests added for config loader (subAgent temperature preservation), provider (temperature override via env var, invalid/empty/out-of-range handling), and full test suite passes.
Coverage
Checklist
npm run lintpasses