Add code_mode_only feature (#14617)

Summary
- add the code_mode_only feature flag/config schema and wire its
dependency on code_mode
- update code mode tool descriptions to list nested tools with detailed
headers
- restrict available tools for prompt and exec descriptions when
code_mode_only is enabled and test the behavior

Testing
- Not run (not requested)
This commit is contained in:
pakrym-oai
2026-03-13 13:30:19 -07:00
committed by GitHub
Unverified
parent ef37d313c6
commit 477a2dd345
10 changed files with 302 additions and 31 deletions
+1 -1
View File
@@ -6175,7 +6175,7 @@ fn build_prompt(
) -> Prompt {
Prompt {
input,
tools: router.specs(),
tools: router.model_visible_specs(),
parallel_tool_calls: turn_context.model_info.supports_parallel_tool_calls,
base_instructions,
personality: turn_context.personality,