Skip to content

Commit 2f29768

Browse files
committed
remove redundant check in a2a
1 parent a6adbaf commit 2f29768

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

apps/sim/blocks/blocks/a2a.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,6 @@ export const A2ABlock: BlockConfig<A2AResponse> = {
214214
],
215215
config: {
216216
tool: (params) => params.operation as string,
217-
params: (params) => {
218-
const { fileUpload, fileReference, ...rest } = params
219-
const hasFileUpload = Array.isArray(fileUpload) ? fileUpload.length > 0 : !!fileUpload
220-
const files = hasFileUpload ? fileUpload : fileReference
221-
return {
222-
...rest,
223-
...(files ? { files } : {}),
224-
}
225-
},
226217
},
227218
},
228219
inputs: {

0 commit comments

Comments
 (0)