Loading...
Loading...
Compare original and translation side by side
/agents init~/.gemini/plans//agents init~/.gemini/plans/eventDrivenScheduler: truesettings.jsonsettings.jsoneventDrivenScheduler: true~/.gemini/plans/plan_idcurrent_step_index~/.gemini/plans/plan_idcurrent_step_indexsamplingsamplingrecursion_depthsave_memorystate_snapshotsave_memorystate_snapshotinterface DelegationManifest {
objective: string;
constraints: string[];
max_tokens: number;
available_tools: string[];
}
// Supervisor Logic
async function delegateTask(manifest: DelegationManifest) {
const subagent = await spawnSubagent("expert-developer");
const result = await subagent.execute(manifest);
if (validateOutput(result)) {
return result;
} else {
return handleSubagentError(result);
}
}interface DelegationManifest {
objective: string;
constraints: string[];
max_tokens: number;
available_tools: string[];
}
// 监督者逻辑
async function delegateTask(manifest: DelegationManifest) {
const subagent = await spawnSubagent("expert-developer");
const result = await subagent.execute(manifest);
if (validateOutput(result)) {
return result;
} else {
return handleSubagentError(result);
}
}architect-procode-architectcodeReviewerauditor-proarchitect-procode-architectcodeReviewerauditor-procodebase_investigatorcodebase_investigatorscripts/monitor-delegation.tsscripts/validate-handoff.pyscripts/monitor-delegation.tsscripts/validate-handoff.py