We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 567d661 commit b08c8f0Copy full SHA for b08c8f0
.agents/editor/best-of-n/editor-best-of-n.ts
@@ -328,8 +328,10 @@ function* handleStepsMax({
328
} satisfies ToolCall<'spawn_agents'>
329
330
const selectorOutput = extractSpawnResults<{
331
- implementationId: string
332
- reasoning: string
+ value: {
+ implementationId: string
333
+ reasoning: string
334
+ }
335
}>(selectorResult)[0]
336
337
if ('errorMessage' in selectorOutput) {
@@ -339,7 +341,7 @@ function* handleStepsMax({
339
341
} satisfies ToolCall<'set_output'>
340
342
return
343
}
- const { implementationId } = selectorOutput
344
+ const { implementationId } = selectorOutput.value
345
const chosenImplementation = implementations.find(
346
(implementation) => implementation.id === implementationId,
347
)
0 commit comments