fix: match AutoProvisionedAgent shape + valid OutcomeKind for loops
Co-Authored-By: Claude Opus 4.7 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
279d785f5b
commit
c3e8f3ee01
@@ -71,7 +71,7 @@ export function AutoProvisionCard({
|
|||||||
color: "#d7d7db",
|
color: "#d7d7db",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{a.role_slot} · {a.display_name}
|
{a.role_slot} · {a.name}
|
||||||
</span>
|
</span>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -184,8 +184,14 @@ export function LoopsWizard({
|
|||||||
const r = await autoProvisionTeam({
|
const r = await autoProvisionTeam({
|
||||||
title: title.trim() || task.trim().slice(0, 60) || "Loop team",
|
title: title.trim() || task.trim().slice(0, 60) || "Loop team",
|
||||||
description: task.trim(),
|
description: task.trim(),
|
||||||
outcome_kind: "loop",
|
// Loops don't map to a formal outcome_kind — "prod_plan" is the
|
||||||
topology_kind: kind,
|
// most neutral choice for the LLM-derived role prompt.
|
||||||
|
outcome_kind: "prod_plan",
|
||||||
|
topology_kind: (kind as
|
||||||
|
| "hub_spoke"
|
||||||
|
| "pipeline"
|
||||||
|
| "hierarchical"
|
||||||
|
| "star_moe") || undefined,
|
||||||
model: "claude-sonnet-5",
|
model: "claude-sonnet-5",
|
||||||
});
|
});
|
||||||
setAutoTeam(r);
|
setAutoTeam(r);
|
||||||
|
|||||||
Reference in New Issue
Block a user