Skip to content

Commit bc4e079

Browse files
authored
Merge pull request #351 from rumpl/rename-code-mode
Rename CodeMode to CodeModeTools
2 parents f2a4f8c + f8af0bd commit bc4e079

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/config/v2/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type AgentConfig struct {
1717
SubAgents []string `json:"sub_agents,omitempty"`
1818
AddDate bool `json:"add_date,omitempty"`
1919
AddEnvironmentInfo bool `json:"add_environment_info,omitempty"`
20-
CodeMode bool `json:"code_mode,omitempty"`
20+
CodeModeTools bool `json:"code_mode_tools,omitempty"`
2121
MaxIterations int `json:"max_iterations,omitempty"`
2222
NumHistoryItems int `json:"num_history_items,omitempty"`
2323
}

pkg/teamloader/teamloader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func Load(ctx context.Context, path string, runtimeConfig config.RuntimeConfig)
166166
}
167167

168168
if len(agentTools) > 0 {
169-
if agentConfig.CodeMode || runtimeConfig.GlobalCodeMode {
169+
if agentConfig.CodeModeTools || runtimeConfig.GlobalCodeMode {
170170
codemodeTool := codemode.Wrap(agentTools)
171171
opts = append(opts, agent.WithToolSets(codemodeTool))
172172
} else {

0 commit comments

Comments
 (0)