Skip to content

Commit b08c8f0

Browse files
committed
tweak best of n selector to have the impl
1 parent 567d661 commit b08c8f0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.agents/editor/best-of-n/editor-best-of-n.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,10 @@ function* handleStepsMax({
328328
} satisfies ToolCall<'spawn_agents'>
329329

330330
const selectorOutput = extractSpawnResults<{
331-
implementationId: string
332-
reasoning: string
331+
value: {
332+
implementationId: string
333+
reasoning: string
334+
}
333335
}>(selectorResult)[0]
334336

335337
if ('errorMessage' in selectorOutput) {
@@ -339,7 +341,7 @@ function* handleStepsMax({
339341
} satisfies ToolCall<'set_output'>
340342
return
341343
}
342-
const { implementationId } = selectorOutput
344+
const { implementationId } = selectorOutput.value
343345
const chosenImplementation = implementations.find(
344346
(implementation) => implementation.id === implementationId,
345347
)

0 commit comments

Comments
 (0)