Skip to content

Commit 2ffdcb4

Browse files
committed
address greptile comments
1 parent b32d4e4 commit 2ffdcb4

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

apps/sim/lib/workflows/blocks/block-outputs.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -307,26 +307,6 @@ export function getBlockOutputs(
307307
return getLegacyStarterOutputs(subBlocks)
308308
}
309309

310-
if (blockType === 'agent') {
311-
const responseFormatValue = subBlocks?.responseFormat?.value
312-
if (responseFormatValue) {
313-
const parsed = parseResponseFormatSafely(responseFormatValue, 'agent')
314-
if (parsed) {
315-
const fields = extractFieldsFromSchema(parsed)
316-
if (fields.length > 0) {
317-
const outputs: OutputDefinition = {}
318-
for (const field of fields) {
319-
outputs[field.name] = {
320-
type: (field.type || 'any') as any,
321-
description: field.description || `Field from Agent: ${field.name}`,
322-
}
323-
}
324-
return outputs
325-
}
326-
}
327-
}
328-
}
329-
330310
const baseOutputs = { ...(blockConfig.outputs || {}) }
331311
const filteredOutputs = filterOutputsByCondition(baseOutputs, subBlocks, includeHidden)
332312
return applyInputFormatToOutputs(blockType, blockConfig, subBlocks, filteredOutputs)

0 commit comments

Comments
 (0)