feat: enhance role-tier structure for models and update related configurations

This commit is contained in:
Lauren ten Hoor
2026-02-11 01:18:13 +08:00
parent f2e71a35d8
commit b249217bc1
5 changed files with 94 additions and 22 deletions

View File

@@ -22,12 +22,23 @@ export function createSetupTool(api: OpenClawPluginApi) {
channelBinding: { type: "string", enum: ["telegram", "whatsapp"], description: "Channel to bind (optional, with newAgentName only)." },
migrateFrom: { type: "string", description: "Agent ID to migrate channel binding from. Check openclaw.json bindings first." },
models: {
type: "object", description: "Model overrides per tier.",
type: "object", description: "Model overrides per role and tier.",
properties: {
junior: { type: "string", description: `Default: ${DEFAULT_MODELS.junior}` },
medior: { type: "string", description: `Default: ${DEFAULT_MODELS.medior}` },
senior: { type: "string", description: `Default: ${DEFAULT_MODELS.senior}` },
qa: { type: "string", description: `Default: ${DEFAULT_MODELS.qa}` },
dev: {
type: "object", description: "Developer tier models",
properties: {
junior: { type: "string", description: `Default: ${DEFAULT_MODELS.junior}` },
medior: { type: "string", description: `Default: ${DEFAULT_MODELS.medior}` },
senior: { type: "string", description: `Default: ${DEFAULT_MODELS.senior}` },
},
},
qa: {
type: "object", description: "QA tier models",
properties: {
"qa-engineer": { type: "string", description: `Default: ${DEFAULT_MODELS["qa-engineer"]}` },
"manual-tester": { type: "string", description: `Default: ${DEFAULT_MODELS["manual-tester"]}` },
},
},
},
},
projectExecution: { type: "string", enum: ["parallel", "sequential"], description: "Project execution mode. Default: parallel." },